add removing secrets from git

This commit is contained in:
Niccolo Borgioli 2024-12-16 11:51:48 +01:00
parent 48c8dc4ad9
commit eb8815a6c2

View File

@ -0,0 +1,9 @@
# 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](https://rtyley.github.io/bfg-repo-cleaner/).
> `--no-blob-protection` also modifies you latest commit, by default that is turned off.
```bash
bfg -D "*.txt" --no-blob-protection
```