Last active
September 26, 2015 01:58
-
-
Save llh911001/19d7b21df7d2f203deb1 to your computer and use it in GitHub Desktop.
Really delete loosed files in git repo
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 --tag-name-filter cat --index-filter 'git rm -r --cached --ignore-unmatch FILE_NAME' --prune-empty -f -- --all | |
git reflog expire --expire=now --all | |
git gc --aggressive --prune=now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment