Last active
September 9, 2015 06:59
-
-
Save donnib/0699b2475f0ac748f1e2 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
git filter-branch -f --index-filter 'xargs git rm --cached -r < /home/folders_to_delete.txt --ignore-unmatch' --prune-empty --tag-name-filter cat -- --all | |
--index-filter 'while read -r dir; do git rm --cached -r --ignore-unmatch "$dir"; done < /home/folders_to_delete.txt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment