Skip to content

Instantly share code, notes, and snippets.

@vluzrmos
Created March 5, 2015 01:49
Show Gist options
  • Save vluzrmos/25833c3f0848f6a625da to your computer and use it in GitHub Desktop.
Save vluzrmos/25833c3f0848f6a625da to your computer and use it in GitHub Desktop.
Remove file from all commits on all branches
# Remove file from all commits on all branches
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch FILENAMEHERE" --prune-empty --tag-name-filter cat -- --all
# After
git push --all --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment