Created
May 28, 2011 07:42
-
-
Save markpasc/996696 to your computer and use it in GitHub Desktop.
git-destroy
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
#!/bin/sh | |
UPDATE="git update-index --remove $@" | |
echo "git filter-branch --prune-empty -f --index-filter '$UPDATE' HEAD" | |
git filter-branch --prune-empty -f --index-filter "$UPDATE" HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment