Created
November 11, 2010 15:42
-
-
Save kana/672651 to your computer and use it in GitHub Desktop.
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
find foo bar baz -path '*blahblah*' -type f >whitelist |
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
git filter-branch --index-filter ' | |
git rm --quiet --cached --ignore-unmatch $( | |
{ git ls-files; cat /full/path/to/whitelist; } | | |
sort | | |
uniq -c | | |
sed -e "s/^ *//;/^2 /d;s/^. //" | |
) | |
' --prune-empty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment