Skip to content

Instantly share code, notes, and snippets.

@beny
Created July 27, 2012 13:22
Show Gist options
  • Save beny/3187985 to your computer and use it in GitHub Desktop.
Save beny/3187985 to your computer and use it in GitHub Desktop.
git commands which cleans repo history index from too big files
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