Last active
September 3, 2015 10:15
-
-
Save perguth/07ce2bfff353e86ca6a2 to your computer and use it in GitHub Desktop.
Remove a certain file completely throughout all history from a GIT repository branch.
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
| # replace FILE (eg. `subfolder/file.md`) and BRANCH | |
| git filter-branch --force --index-filter \ | |
| 'git rm --cached --ignore-unmatch FILE' \ | |
| --prune-empty --tag-name-filter BRANCH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment