GIT-SECRET-REMOVE(1)

πŸ“¦
version 0.5.0 Β· 3 versions
, in debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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: unlike add, which automatically adds pathnames to .gitignore, remove does 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 ⭐


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 πŸ’–βœ¨πŸŽ€