Created
September 5, 2011 23:10
-
-
Save a2/1196132 to your computer and use it in GitHub Desktop.
Deletes file/folder from all revisions (as if it never existed).
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
git filter-branch --index-filter 'git rm --cached --ignore-unmatch FILE' HEAD | |
git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch FLDR' HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment