BFG Repo Cleaner Site:
https://rtyley.github.io/bfg-repo-cle...
Commands used:
wget https://repo1.maven.org/maven2/com/ma...
bfg --delete-files .env
git reflog expire --expire=now --all
git gc --prune=now --aggressive
git push --force
Alias entry for .bashrc:
alias bfg='java -jar /usr/local/bin/bfg.jar'
00:00 Intro
00:30 What to do if you accidentally commit secrets
01:00 Demo Setup
04:35 Pushing a .env File
06:10 Seeing Secrets in Commit History
06:45 Installing BFG Repo Cleaner
10:50 Aliasing BFG Cleaner
13:00 Stashing your .env file
13:45 Cloning Repo with --mirror
14:50 Removing the .env File from the Commit History
16:20 Pushing Cleaned Repo
17:20 Re-Cloning the Repo
19:00 Double Checking Removal
20:05 Summary and Conclusion