git-secret/man/man1/git-secret-add.1

47 lines
1.5 KiB
Groff
Raw Normal View History

2016-02-23 21:48:25 +00:00
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
2022-04-16 00:12:48 +00:00
.TH "GIT\-SECRET\-ADD" "1" "April 2022" "sobolevn" "git-secret 0.5.0-alpha1"
2016-02-23 21:48:25 +00:00
.
.SH "NAME"
\fBgit\-secret\-add\fR \- starts to track added files\.
.
.SH "SYNOPSIS"
.
.nf
2020-10-04 19:20:24 +00:00
git secret add [\-v] [\-i] <pathspec>\.\.\.
2016-02-23 21:48:25 +00:00
.
.fi
.
.SH "DESCRIPTION"
\fBgit secret add\fR \- tells \fBgit secret\fR which files hold secrets\.
2018-08-26 17:26:15 +00:00
.
.P
Adds filepath(s) into \fB\.gitsecret/paths/mapping\.cfg\fR\. (It is not recommended to alter \fB\.gitsecret/paths/mapping\.cfg\fR manually\.)
.
.P
As of 0\.2\.6, this command also ensures the filepath is in \fB\.gitignore\fR as the contents are now considered secret and should not be committed into the repository unencrypted\.
2016-02-23 21:48:25 +00:00
.
.P
2022-04-16 00:12:48 +00:00
The \fBadd\fR action will fail unless there are already users in \fBgit\-secret\fR\'s keyring\.
2016-02-23 21:48:25 +00:00
.
2018-08-26 17:26:15 +00:00
.P
2021-06-26 14:17:37 +00:00
(See git\-secret(7) \fIhttps://git\-secret\.io/git\-secret\fR for information about renaming the \.gitsecret folder using the SECRETS_DIR environment variable\.
2018-08-26 17:26:15 +00:00
.
2016-02-23 21:48:25 +00:00
.SH "OPTIONS"
.
.nf
2020-10-04 19:20:24 +00:00
\-v \- verbose, shows extra information\.
\-i \- does nothing, adding paths to \.gitignore is now the default behavior\.
2016-02-23 21:48:25 +00:00
\-h \- shows this help\.
.
.fi
.
.SH "MANUAL"
2022-04-16 00:12:48 +00:00
Run \fBman git\-secret\-add\fR to see this document\.
.
2016-02-23 21:48:25 +00:00
.SH "SEE ALSO"
2021-06-26 14:17:37 +00:00
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