'fatal: HTTP request failed' error when pulling from git repository

試著忘記壹切 提交于 2019-12-01 10:49:51

I had the same problem that is happened because GitHub Permanently disable deprecated algorithms in February 22, 2018 19:00 UTC (11:00 am PST)

And I fixed it using : sudo yum update -y nss curl libcurl

My steps are:

  1. Change the git remote url from https to ssh
  2. Create ssh key and add to the ssh agent (https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)
  3. Add the public key to your git repository service account --- By copying the content of the key you generated from 2 into your account settings. We use BitBucket so Settings> SSH keys (under SECURITY) > Add Key (to the key box and save)

After getting the same error, I had to update git on my CentOS 6.5. Because there are no packages newer available through the official repo configured on my OS, I had to :

  • install the IUS repository : https://ius.io/GettingStarted/
  • remove my actual git install
  • install perl-TermReadKey
  • install newer version of git :

    yum install yum --disablerepo=base,updates --enablerepo=ius update git
    

Then I was able to push (after it asked me for my username/password Github)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!