You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
git-secret/man/man1/git-secret-add.1

44 lines
1.5 KiB
Groff

9 years ago
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
2 years ago
.TH "GIT\-SECRET\-ADD" "1" "April 2022" "sobolevn" "git-secret 0.5.0-alpha1"
9 years ago
.
.SH "NAME"
\fBgit\-secret\-add\fR \- starts to track added files\.
.
.SH "SYNOPSIS"
.
.nf
4 years ago
git secret add [\-v] [\-i] <pathspec>\.\.\.
9 years ago
.
.fi
.
.SH "DESCRIPTION"
2 years ago
\fBgit secret add\fR \- tells \fBgit secret\fR which files hold secrets, and adds filepath(s) into \fB\.gitsecret/paths/mapping\.cfg\fR\. (It is not recommended to alter \fB\.gitsecret/paths/mapping\.cfg\fR manually\.)
6 years ago
.
.P
2 years ago
As of 0\.2\.6, this command also ensures the filepath is mentioned \fB\.gitignore\fR as the contents are now considered secret and should not be committed into the repository unencrypted\.
9 years ago
.
.P
2 years ago
The \fBadd\fR action will fail unless there are already users in \fBgit\-secret\fR\'s keyring\.
9 years ago
.
6 years ago
.P
3 years ago
(See git\-secret(7) \fIhttps://git\-secret\.io/git\-secret\fR for information about renaming the \.gitsecret folder using the SECRETS_DIR environment variable\.
6 years ago
.
9 years ago
.SH "OPTIONS"
.
.nf
4 years ago
\-v \- verbose, shows extra information\.
\-i \- does nothing, adding paths to \.gitignore is now the default behavior\.
9 years ago
\-h \- shows this help\.
.
.fi
.
.SH "MANUAL"
2 years ago
Run \fBman git\-secret\-add\fR to see this document\.
.
9 years ago
.SH "SEE ALSO"
3 years ago
git\-secret\-init(1) \fIhttps://git\-secret\.io/git\-secret\-init\fR, git\-secret\-tell(1) \fIhttps://git\-secret\.io/git\-secret\-tell\fR, git\-secret\-hide(1) \fIhttps://git\-secret\.io/git\-secret\-hide\fR, git\-secret\-reveal(1) \fIhttps://git\-secret\.io/git\-secret\-reveal\fR