Skip to content

Instantly share code, notes, and snippets.

@exomut
Created January 7, 2020 09:25
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 exomut/9cddc9d4f6dcb663755761d73ffd5de0 to your computer and use it in GitHub Desktop.
Save exomut/9cddc9d4f6dcb663755761d73ffd5de0 to your computer and use it in GitHub Desktop.
Remove from git history
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment