Skip to content

Instantly share code, notes, and snippets.

@nsuthison
Last active February 3, 2021 22:15
Show Gist options
  • Save nsuthison/583ce80e139b87e601fa5286f9853077 to your computer and use it in GitHub Desktop.
Save nsuthison/583ce80e139b87e601fa5286f9853077 to your computer and use it in GitHub Desktop.
Remove sensitive data from git history
# 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