1.本地版本高于远程版本
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方法:在.ssh目录下创建config文件,其中添加如下内容
Host <git-cross-name>
KexAlgorithms +diffie-hellman-group1-sha1
2.http下载时错误,可能由于http缓存不够或者网络不稳定等
error: RPC failed; curl 56 Recv failure: Operation timed outB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决方法:修改git配置(当前配置可以用git config -l查看)
- httpBuffer加大
git config --global http.postBuffer 524288000
-
压缩配置
git config --global core.compression -1
-
修改配置文件export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1 -
3.