Created
March 29, 2018 05:15
-
-
Save ipan/ee338cfa28c0589cf4724275db0ffaed to your computer and use it in GitHub Desktop.
delete big files in git history
This file contains hidden or 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
# 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