Skip to content

Instantly share code, notes, and snippets.

@luanlmd
Last active December 16, 2015 20:11
Show Gist options
  • Save luanlmd/18c6dbc4cc006f49ceed to your computer and use it in GitHub Desktop.
Save luanlmd/18c6dbc4cc006f49ceed to your computer and use it in GitHub Desktop.
git remove old commit files
# change the 'filename.ext' part and run
git filter-branch -f --index-filter "git rm -r --cached --ignore-unmatch filename.ext" --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment