git报错及解决方法

本文最后更新于:9 个月前

git报错及解决办法

1 OpenSSL SSL_read: Connection was reset, errno 10054

这是服务器的SSL证书没有经过第三方机构的签署,所以报错。

造成这个错误很有可能是网络不稳定,连接超时导致的,如果再次尝试后依然报错,输入以下命令解除ssl验证:

1
git config --global http.sslVerify "false"

再次上传即可。

2 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)

增加git缓冲区大小:

1
git config --global http.postBuffer 524288000

3 Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit’.

原因在于Git在使用过程中遭遇了奔溃,部分被上锁资源没有被释放导致的。进入项目文件夹下的 .git文件中(显示隐藏文件夹或rm .git/index.lock)删除index.lock文件即可。


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!