git pull:信息/引用HTTP请求失败 [英] git pull : info/refs HTTP request failed
问题描述
休息片刻后,我刚刚登录到Prod框(Centos),由于某些原因,我无法执行git pull
.
I've just logged onto our Prod box (Centos) after a long break, and I can't do git pull
for some reason.
此存储库的克隆似乎存在局部问题,因为我可以在其他计算机(以前从未对此存储库的克隆)中使用相同的凭据来克隆和提取相同的存储库.
There seems to be a local problem with this clone of the repo, because I can clone and pull the same repo using the same credentials on other machines (that never had a clone of this repo before)
命令行消息是:
[root@ft41 project_folder]# git pull
Password:
error: while accessing https://<myusername>@bitbucket.org/<myproject>/<myrepo>.git/info/refs
fatal: HTTP request failed
我已编辑了尖括号中的部分.
此info/refs
是此请求的常用URL吗?本地克隆中的某些内容可能会被破坏并导致这种情况吗?
The parts in angle-brackets have been redacted by me.
Is this info/refs
the usual URL for this request? Could something in the local clone be corrupted and causing this?
如果有帮助:
[root@ft41 project_folder]# git status
# On branch master
nothing added to commit
请注意-我过去多次成功地从此pc/目录中完成git pull
.它确实支持HTTPS协议.
Please note - I have done git pull
from this pc/directory successfully many times in the past. It does support HTTPS protocol.
推荐答案
这可能是因为非常BitBucket最近完成了对TLSv1和TLSv1.1的禁用( GitHub在2月完成了此操作. 2018 )
如此处所述,请升级nss,curl和libcurl(请参见
As mentioned here, do upgrade nss, curl and libcurl (see here for an example of curl upgrade on CentOS).
sudo yum update -y nss curl libcurl
这篇关于git pull:信息/引用HTTP请求失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!