Skip to content

Instantly share code, notes, and snippets.

@ipan
Created March 29, 2018 05:15
Show Gist options
  • Save ipan/ee338cfa28c0589cf4724275db0ffaed to your computer and use it in GitHub Desktop.
Save ipan/ee338cfa28c0589cf4724275db0ffaed to your computer and use it in GitHub Desktop.
delete big files in git history
# delete files in history
git filter-branch --prune-empty \
--index-filter 'git rm -rf --cached \
--ignore-unmatch MY-BIG-DIRECTORY-OR-FILE' \
--tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment