git-secret-add1
Starts to track added files.
Usage
git secret
add
[-v]
[-i]
<pathspec> ...
Overview
git secret add - tells git secret which files hold secrets.
Adds filepath(s) into .gitsecret/paths/mapping.cfg. (It is not recommended to alter .gitsecret/paths/mapping.cfg manually.)
As of 0.2.6, this command also ensures the filepath is in .gitignore as the contents are now considered secret and should not be committed into the repository unencrypted.
The add action will fail unless there are already users in git-secret´s keyring.
(See git-secret(7) https://git-secret.io/git-secret for information about renaming the .gitsecret folder using the SECRETS_DIR environment variable.
Options
-v - verbose, shows extra information. -i - does nothing, adding paths to .gitignore is now the default behavior. -h - shows this help.
Manual
Run man git-secret-add to see this document.
Releases
4 releases since Debian 10 (Buster); the text changed 1 time.