Skip to content

Instantly share code, notes, and snippets.

@kevinxhan
Created April 17, 2016 08:59
Show Gist options
  • Save kevinxhan/c704a6280482dc77826de51891100998 to your computer and use it in GitHub Desktop.
Save kevinxhan/c704a6280482dc77826de51891100998 to your computer and use it in GitHub Desktop.
remove big files from git history
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch $1' --prune-empty --tag-name-filter cat -- --all
git commit --amend -CHEAD
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment