GIT-SECRET-INIT(1)
β¨ git-secret-init(1) β¨
okay bestie, welcome to the git-secret manual β section 1 of the good stuff, straight outta the git-secret package, version 0.5.0-alpha2 π this one's all about the very first thing you ever run, so likeβ¦ pay attention, it's giving origin story π
πΈ NAME πΈ
git-secret-init β initializes git-secret repository. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
π DESCRIPTION π
okay so. git-secret-init initializes a git-secret repo by setting up a .gitsecret directory. simple as that, no cap π«Ά
git-secret-init should be run inside a git repo, and what it does is create the .gitsecret directory and initialize the repo for git-secret. and listen β until a repository is initialized with git secret init, all other git-secret commands are unavailable. literally all of them. so if you're out here confused why nothing works, it's because you skipped step one, bestie π this is the vibe check. pass it first.
If a .gitsecret directory already exists, git-secret-init exits without making any changes. no harm, no foul, she just peaces out π otherwise:
.gitignoreis modified to ignore git-secret'srandom_seed_file, and to not ignore.secretfiles,- a
.gitsecretdirectory is created with the sub-directories/keysand/paths, - The
.gitsecret/keyssubdirectory permission is set to700to make gnupg happy. (gnupg is a delicate little princess and we respect her needs π)
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. iykyk β¨
π OPTIONS π
-hβ shows this help.
π§ MANUAL π§
Run man git-secret-init to see this document. yes, the document you are literally reading right now. she's self-aware, she's meta, she's iconic π
β SEE ALSO β
git-secret-usage(1)https://git-secret.io/git-secret-usagegit-secret-tell(1)https://git-secret.io/git-secret-tell
and that's the whole page, bestie π this lil masterpiece was brought to you by sobolevn, dated April 2022, from git-secret version 0.5.0-alpha2 β go forth and initialize, you absolute main character ππ
π¦ where this page comes from
- debian bookworm: git-secret 0.5.0-1 Β· MIT
- debian trixie: git-secret 0.5.0-1 Β· MIT
- fedora 43: git-secret 0.5.0-9.fc43 Β· MIT
- fedora 44: git-secret 0.5.0-10.fc44 Β· MIT
- ubuntu noble: git-secret 0.5.0-1 Β· MIT
- ubuntu questing: git-secret 0.5.0-1
- ubuntu resolute: git-secret 0.5.0-1build1 Β· MIT
- ubuntu stonking: git-secret 0.5.0-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms