Skip to content

Instantly share code, notes, and snippets.

@julesjans
Created August 18, 2017 10:40
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 julesjans/5ba7a2ca23222db8c276b3c43a063e10 to your computer and use it in GitHub Desktop.
Save julesjans/5ba7a2ca23222db8c276b3c43a063e10 to your computer and use it in GitHub Desktop.
Remove a file from GIT history
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch FILE_TO_DELETE' --prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment