Created
March 5, 2015 01:49
-
-
Save vluzrmos/25833c3f0848f6a625da to your computer and use it in GitHub Desktop.
Remove file from all commits on all branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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