git-secret-add - starts to track added files.

SYNOPSIS

git secret add [-i] <pathspec>...

DESCRIPTION

git-secret-add adds a filepath(s) into .gitsecret/paths/mapping.cfg.

When adding files to encrypt, ensure that they are ignored by git by mentioning them in .gitignore, since they must be secure and not be committed into the remote repository unencrypted.

If there’s no users in the git-secret’s keyring, when adding a file, an exception will be raised.

Use the git secret add command to add filenames to this file.
It is not recommended to add filenames directly into .gitsecret/paths/mapping.cfg.

(See git-secret(7) for information about renaming the .gitsecret folder using the SECRETS_DIR environment variable.

OPTIONS

-i  - adds given files to `.gitignore` if they're not there already
-h  - shows this help.

MANUAL

Run man git-secret-add to see this note.

SEE ALSO

git-secret-init(1), git-secret-tell(1), git-secret-hide(1), git-secret-reveal(1)