Created
February 21, 2015 11:17
-
-
Save iluwatar/9cbea3249a4d3c20163b to your computer and use it in GitHub Desktop.
git_cleanup_repository
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 --tag-name-filter cat --index-filter 'git rm -r --cached --ignore-unmatch bigfolder' --prune-empty -f -- --all | |
git filter-branch --tag-name-filter cat --index-filter 'git rm --cached --ignore-unmatch somefolder/bigfile.zip' --prune-empty -f -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment