Skip to content

Instantly share code, notes, and snippets.

@sarah-j-smith
Created September 8, 2021 23:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sarah-j-smith/62630683412d291642cd7271990b2ef1 to your computer and use it in GitHub Desktop.
Save sarah-j-smith/62630683412d291642cd7271990b2ef1 to your computer and use it in GitHub Desktop.
Running the BFG to clean your repo
cd ~/src/RepoWithExposedSecrets.git
git reflog expire --expire=now --all && git gc --prune=now --aggressive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment