Last active
February 3, 2021 22:15
-
-
Save nsuthison/583ce80e139b87e601fa5286f9853077 to your computer and use it in GitHub Desktop.
Remove sensitive data from git history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ref: https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository | |
# note: use file not path | |
bfg --delete-files {YOUR-FILE-WITH-SENSITIVE-DATA} | |
git push --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment