Skip to content

Instantly share code, notes, and snippets.

@CyberStrike
Created February 13, 2015 21:47
Show Gist options
  • Save CyberStrike/9b873c4d02c040f7b71d to your computer and use it in GitHub Desktop.
Save CyberStrike/9b873c4d02c040f7b71d to your computer and use it in GitHub Desktop.
remove a file from history
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch FILENAME' SHA1..HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment