Skip to content

Instantly share code, notes, and snippets.

@antfu
Created July 16, 2020 03:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antfu/93b9f7b8b1044a0495052bbde227e9dc to your computer and use it in GitHub Desktop.
Save antfu/93b9f7b8b1044a0495052bbde227e9dc to your computer and use it in GitHub Desktop.
Git remove files from all history
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch example.js'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment