git-secret-init(1)

git-secret-init1

Initializes git-secret repository.

Usage

git secret init

Overview

git-secret-init - initializes a git-secret repo by setting up a .gitsecret directory.

git-secret-init should be run inside a git repo, to create the .gitsecret directory and initialize the repo for git-secret. Until a repository is initialized with git secret init, all other git-secret commands are unavailable.

If a .gitsecret directory already exists, git-secret-init exits without making any changes. Otherwise,

•

.gitignore is modified to ignore git-secret´s random_seed_file, and to not ignore .secret files,

•

a .gitsecret directory is created with the sub-directories /keys and /paths,

•

The .gitsecret/keys subdirectory permission is set to 700 to make gnupg happy.

See git-secret(7) https://git-secret.io/git-secret for information about renaming the .gitsecret folder with the SECRETS_DIR environment variable, and changing the extension git-secret uses for secret files with the SECRETS_EXTENSION environment variable.

Options

-h  - shows this help.

Manual

Run man git-secret-init to see this document.

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10–11
  2. 12–13

From git-secret 0.5.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.