-
-
Save lucenarenato/26c17c0604e2314717635be2600fe0e8 to your computer and use it in GitHub Desktop.
Remove file from all commits on all branches
This file contains hidden or 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