Skip to content

Instantly share code, notes, and snippets.

@fabriceleal
Created June 11, 2013 09:12
Show Gist options
  • Save fabriceleal/5755525 to your computer and use it in GitHub Desktop.
Save fabriceleal/5755525 to your computer and use it in GitHub Desktop.
Git: How to remove file from history
# From http://stackoverflow.com/a/8741530
git filter-branch --index-filter 'git rm --cached --ignore-unmatch Smarty/templates_c/*' --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment