赞
踩
fatal: early EOF
fatal: the remote end hung up unexpectedly
fatal: index-pack failed
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly before end of the underlying stream
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: unpack-objects failed
找到里面占比较大的文件,最下面的最大
git verify-pack -v .git/objects/pack/pack-*.idx | sort -k 3 -g | tail -20
通过id找到文件名
git rev-list --objects --all | grep 86cb766c6b8af2564ac9201df913fe079acae3d1
删除通过文件名 tini
git log --pretty=oneline --branches -- tini
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch --ignore-unmatch tini' --prune-empty --tag-name-filter cat -- --all
清理本地与远程仓库缓存文件,达到瘦身效果,过程较慢
git push origin --force --all
git remote prune origin
rm -Rf .git/refs/original
rm -Rf .git/logs/
git gc
git prune
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。