Skip to content

Instantly share code, notes, and snippets.

@iluwatar
Created February 21, 2015 11:17
Show Gist options
  • Save iluwatar/9cbea3249a4d3c20163b to your computer and use it in GitHub Desktop.
Save iluwatar/9cbea3249a4d3c20163b to your computer and use it in GitHub Desktop.
git_cleanup_repository
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