Skip to content

Instantly share code, notes, and snippets.

@satazor
Last active December 16, 2015 02:38
Show Gist options
  • Save satazor/5363520 to your computer and use it in GitHub Desktop.
Save satazor/5363520 to your computer and use it in GitHub Desktop.
Remove a file permanently from a repo
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch components' --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