Gitclone报错protocol error bad pack header
gitclone报错protocol error: bad pack header
what: git clone 报错protocol error: bad pack header
when: 2021/9/28
who:JRT
where:
why:记录过程
现象:
[root@ecs-hk-arm redis]# git clone http://1.1.1.1/jrt/jrt.git
Cloning into 'jrt'...
remote: Enumerating objects: 177, done.
remote: Counting objects: 100% (177/177), done.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header
原因
git 仓库过大
解决:
#在本地Git Bash Here 中执行
git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m"
git config --global pack.threads "1"
#使用git小乌龟克隆时,勾选 deapth=1(深度)