mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
fc51d6f15f
* More precise feedback about added files This adapts the output of the add command in order to report exactly how many files have been added. Specially with wildcard patterns, this makes it easier to verify that expected files are added. With the verbose option, the add command will also tell which files have been added. By @bbroeksema bbroeksema
40 lines
1.4 KiB
Markdown
40 lines
1.4 KiB
Markdown
git-secret-add - starts to track added files.
|
|
=============================================
|
|
|
|
## SYNOPSIS
|
|
|
|
git secret add [-v] [-i] <pathspec>...
|
|
|
|
|
|
## DESCRIPTION
|
|
`git-secret-add` adds a filepath(s) into `.gitsecret/paths/mapping.cfg`
|
|
and ensures the filepath is mentioned .gitignore.
|
|
|
|
When adding files to encrypt, `git-secret-add` (as of 0.2.6) will 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)](http://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 note.
|
|
|
|
|
|
## SEE ALSO
|
|
|
|
[git-secret-init(1)](http://git-secret.io/git-secret-init), [git-secret-tell(1)](http://git-secret.io/git-secret-tell),
|
|
[git-secret-hide(1)](http://git-secret.io/git-secret-hide), [git-secret-reveal(1)](http://git-secret.io/git-secret-reveal)
|