Created
July 27, 2012 13:22
-
-
Save beny/3187985 to your computer and use it in GitHub Desktop.
git commands which cleans repo history index from too big files
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 --cached --ignore-unmatch -- *.mbtiles' --prune-empty -- --all | |
rm -fr .git/refs/original/ | |
git reflog expire --expire=now --all | |
git gc --prune=now | |
git gc --aggressive --prune=now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment