GIT-SECRET-REMOVE(1)
π GIT-SECRET-REMOVE π
okay bestie, welcome to the git-secret-remove page, part of the git-secret family β¨
πΈ NAME πΈ
git-secret-remove β removes files from index.
like, it takes them off the list. bye bye. π«Ά
π¦ SYNOPSIS π¦
git secret remove [-c] <pathspec>...
β¨ DESCRIPTION β¨
so git-secret-remove does one very specific thing: it stops files from being tracked by git-secret. that's it, that's the job. π
how does it do that, you ask? it deletes filenames from .gitsecret/paths/mapping.cfg. and because those names are gone from that file, the files stop being tracked by git-secret β which means they're no longer getting encrypted into, or decrypted from, their .secret encrypted versions. no cap. β¨
there's also a -c option if you wanna go the extra mile and delete existing encrypted versions of the files you provided. spicy. π₯
ngl, here's a lil heads up: unlikeadd, which automatically adds pathnames to.gitignore,removedoes NOT delete pathnames from.gitignore. so don't expect it to clean that up for you, bestie. π
(see git-secret(7) https://git-secret.io/git-secret for the tea on renaming the .gitsecret folder using the SECRETS_DIR environment variable. iykyk π)
π OPTIONS π
-cβ deletes existing real encrypted files. like, the actual encrypted ones. gone. π-hβ shows help. your lil rescue button when you're lost. π«Ά
π MANUAL π
run man git-secret-remove to see this document. yes, the doc telling you how to see the doc. iconic behavior honestly. π
β SEE ALSO β
git-secret-add(1)https://git-secret.io/git-secret-addgit-secret-clean(1)https://git-secret.io/git-secret-cleangit-secret-removeperson(1)https://git-secret.io/git-secret-removeperson
aaaand that's the whole page, bestie π§ written by sobolevn, dated April 2022, living in the git-secret 0.5.0-alpha2 era. go forth and remove responsibly πβ¨π
π¦ 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