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)
The command-line message is:
[root@ft41 project_folder]# git pull
Password:
error: while accessing https://<myusername>@bitbucket.org/<myproject>/<myrepo>.git/info/refs
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
我已编辑了尖括号中的部分。这是info/refs该请求的常用网址吗?本地克隆中的某些内容可能会损坏并导致此情况吗?
如果有帮助:
[root@ft41 project_folder]# git status
# On branch master
nothing added to commit
Run Code Online (Sandbox Code Playgroud)
请注意-过去,我已经git pull多次成功地从此pc /目录执行此操作。它确实支持HTTPS协议。
这可能是因为BitBucket 最近禁用了TLSv1和TLSv1.1(GitHub在2018年2月完成了此操作)
如此处所述,请升级nss,curl和libcurl(请参阅此处,了解CentOS上curl升级的示例)。
sudo yum update -y nss curl libcurl
Run Code Online (Sandbox Code Playgroud)