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

53 lines
1.7 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
.
.TH "GIT\-SECRET\-INIT" "1" "April 2022" "sobolevn" "git-secret 0.5.0-alpha1"
2016-02-23 21:48:25 +00:00
.
.SH "NAME"
\fBgit\-secret\-init\fR \- initializes git\-secret repository\.
.
.SH "SYNOPSIS"
.
.nf
git secret init
.
.fi
.
.SH "DESCRIPTION"
2022-04-16 00:12:48 +00:00
\fBgit\-secret\-init\fR \- initializes a \fBgit\-secret\fR repo by setting up a \fB\.gitsecret\fR directory\.
.
.P
\fBgit\-secret\-init\fR should be run inside a \fBgit\fR repo, to create the \fB\.gitsecret\fR directory and initialize the repo for git\-secret\. Until a repository is initialized with \fBgit secret init\fR, all other \fBgit\-secret\fR commands are unavailable\.
2016-02-23 21:48:25 +00:00
.
2018-08-26 17:26:15 +00:00
.P
If a \fB\.gitsecret\fR directory already exists, \fBgit\-secret\-init\fR exits without making any changes\. Otherwise,
.
.IP "\(bu" 4
\fB\.gitignore\fR is modified to ignore \fBgit\-secret\fR\'s \fBrandom_seed_file\fR, and to not ignore \fB\.secret\fR files,
.
.IP "\(bu" 4
a \.gitsecret directory is created with the sub\-directories /keys and /paths,
.
.IP "\(bu" 4
2022-04-16 00:12:48 +00:00
The \fB\.gitsecret/keys\fR subdirectory permission is set to 700 to make gnupg happy\.
.
.IP "" 0
.
.P
2022-04-16 00:12:48 +00:00
See git\-secret(7) \fIhttps://git\-secret\.io/git\-secret\fR for information about renaming the \.gitsecret folder with the \fBSECRETS_DIR\fR environment variable, and changing the extension \fBgit\-secret\fR uses for secret files with the \fBSECRETS_EXTENSION\fR environment variable\.
2018-08-26 17:26:15 +00:00
.
2016-02-23 21:48:25 +00:00
.SH "OPTIONS"
.
.nf
\-h \- shows this help\.
.
.fi
.
.SH "MANUAL"
2022-04-16 00:12:48 +00:00
Run \fBman git\-secret\-init\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\-usage(1) \fIhttps://git\-secret\.io/git\-secret\-usage\fR, git\-secret\-tell(1) \fIhttps://git\-secret\.io/git\-secret\-tell\fR