Last active
August 29, 2015 14:06
-
-
Save samuelbeek/3e6c632f27e069cc4a5e to your computer and use it in GitHub Desktop.
Remove big files from a git repo (your current one or one in the history). Very simple terminal command.
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
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
Super easy solution for this frustrating problem