Last active
December 29, 2015 23:39
-
-
Save btspoony/7743831 to your computer and use it in GitHub Desktop.
Git Remove bigfiles
This file contains 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 --index-filter 'git rm -r --cached --ignore-unmatch path/to/your/file' HEAD | |
git push origin master --force | |
rm -rf .git/refs/original/ | |
git reflog expire --expire=now --all | |
git gc --prune=now | |
git gc --aggressive --prune=now |
This file contains 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 fetch remote branch | |
git reset --hard FETCH_HEAD | |
git clean -df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment