报错如下:
error: xxx bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
网上很对于这个问题的相同解决方法
第一句话我遇到个问题,没有用-b参数,clone了默认的master分支,后面的没反应,后设置-b 为最新提交的一个分支名称,重新执行第二、第三步,就可以看到所有的分支了。也就完成了clone
1.执行语句:git clone -b 分支名 --depth=1 仓库路径 ,意思是只clone一条记录。
2.这里要修改根目录的 .git文件夹里面的config文件,修改红色文字,注意下面的 *
[remote "origin"]
url = http://xxxxxx
fetch = +refs/heads/*:refs/remotes/origin/*
3.git fetch