see that Zhihu introduced a method above:
author: Zheng Yu
link: https://www.zhihu.com/questio.
Source: Zhihu
copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please indicate the source.
you can try to delete the large files inside. The following is the specific method of operation: 1. Run gc to generate the pack file (the following-- prune=now means to prune all previous submissions, sometimes the .git file will be much smaller just by gc) $git gc-- prune=now
- find the three largest files (see what you need) $git verify-pack-v. git / objects/pack/*.idx | sort-k 3-n | tail-3
- check who those large files are (c43a8da is the hash code of the large file above) $git rev-list-- objects-- all | grep c43a8da
4. Remove the reference to the file (that is, data/bigfile) $git filter-branch-- force-- index-filter "git rm-- cached-- ignore-unmatch "data/bigfile""-- prune-empty-- tag-name-filter cat-all
5. Repack $git for-each-ref-- format="delete% (refname) "refs/original | git update-ref-- stdin
$git reflog expire-- expire=now-- all
$git gc-- prune=now
6. Check the space usage of pack $git count-objects-v
ran Goose, this is WIN7.. It"s just a cmder. How should it be done?