Skip to content

Instantly share code, notes, and snippets.

@sarah-j-smith
Created September 9, 2021 00:04
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/cfef964530c7b5bcd94c0a9816fc248f to your computer and use it in GitHub Desktop.
Save sarah-j-smith/cfef964530c7b5bcd94c0a9816fc248f to your computer and use it in GitHub Desktop.
Creating a mirror of the repo to use with BFG
cd ~/src
git clone --mirror git@github.com:my-git-name/RepoWithExposedSecrets.git
java -jar ~/bin/bfg-1.14.0.jar --delete-files Credentials.json RepoWithExposedSecrets.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment