Skip to content

Instantly share code, notes, and snippets.

@skounis
Last active April 5, 2022 07:35
Show Gist options
  • Save skounis/07285046a6ca7de50743d3288d1f4de8 to your computer and use it in GitHub Desktop.
Save skounis/07285046a6ca7de50743d3288d1f4de8 to your computer and use it in GitHub Desktop.
Remove a file from Git's history
# Download bfg for
# https://rtyley.github.io/bfg-repo-cleaner/
java -jar bfg.jar --delete-files {filename}
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment