memoir/pages/git/remove-secrets.md

373 B

Remove secrets after being pushed

If you accidentally pushed a secret or some file that should not be publicly available in your git repo, there are a few ways. My personal fav is BFG.

--no-blob-protection also modifies you latest commit, by default that is turned off.

bfg -D "*.txt" --no-blob-protection