mirror of
https://github.com/cupcakearmy/memoir.git
synced 2024-12-21 23:56:25 +00:00
add removing secrets from git
This commit is contained in:
parent
48c8dc4ad9
commit
eb8815a6c2
9
pages/git/remove-secrets.md
Normal file
9
pages/git/remove-secrets.md
Normal 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
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user