Unable to connect to git remote repository

后端 未结 5 1028
梦如初夏
梦如初夏 2021-01-30 07:06

After performing git push -u origin master, I got:

fatal: unable to access \'https://github.com/xxxx/xxxx.git         


        
5条回答
  •  滥情空心
    2021-01-30 07:51

    Laurent's answer worked for me. (I am behind corporate firewall.) In my case,

    • I removed the proxy setting in .gitconfig file.

    • Everything just work fine. I can clone from a remote repo.

    • When i wanted to push to the remote repo, I generated a ssh key. Then I am able to push.

    Hope it saves someones 2 hours.

提交回复
热议问题