GIT-SECRET-ADD(1)
π GIT-SECRET-ADD(1) π
okay bestie, so this is the git-secret manual, version 0.5.0-alpha2, and today we're talking about git-secret-add. buckle up π
β¨ NAME β¨
git-secret-add β starts to track added files. that's it, that's the vibe π¦
πΈ SYNOPSIS πΈ
git secret add [-v] [-i] <pathspec>...
π DESCRIPTION π
so git secret add is literally the moment you tell git secret which of your files are holding secrets. main character announcement, fr fr.
it adds your filepath(s) into .gitsecret/paths/mapping.cfg. and ngl, it is not recommended to alter .gitsecret/paths/mapping.cfg manually β let the tool cook, okay? π
as of 0.2.6, this command ALSO makes sure the filepath is in .gitignore, because the contents are now considered secret and should not be committed into the repository unencrypted. like, that's the whole point bestie, no cap. π₯
β οΈ the add action will fail unless there are already users in git-secret's keyring. so tell your people first, or this just does not work. periodt.
(see git-secret(7) at https://git-secret.io/git-secret for info about renaming the .gitsecret folder using the SECRETS_DIR environment variable. iykyk π)
π OPTIONS π
-vβ verbose, shows extra information. she's chatty, she's giving detail, we love her β¨-iβ does nothing, adding paths to.gitignoreis now the default behavior. it's a legacy icon basically π-hβ shows this help. thank u for asking π«Ά
π MANUAL π
run man git-secret-add to see this document. yes, the one you're reading. very meta, very iconic π
π¦ SEE ALSO π¦
git-secret-init(1)β https://git-secret.io/git-secret-initgit-secret-tell(1)β https://git-secret.io/git-secret-tellgit-secret-hide(1)β https://git-secret.io/git-secret-hidegit-secret-reveal(1)β https://git-secret.io/git-secret-reveal
and that's the whole page!! brought to you by sobolevn, dated April 2022. slay, stay secret, protect your files ππβ¨
π¦ 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