一、超时
Successfully created project ‘story’ on GitHub, but initial push failed: unable to access ‘https://github.com/xxx’: Failed to connect to github.com port 443: Timed out
二、拒绝
Failed to connect to xxx port xxx: Connection refused
三、其他
Successfully created project ‘story’ on GitHub, but initial push failed: ssh: connect to host github.com port 22: Connection timed out Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
解决:
由于公司是代理的网络,尝试了网上的一些方法都不行
比如去掉代理,或者重新设置代理都不行等等
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
以上都不行……
最后才想起来把代理设置成公司的代理就行了
git config --global http.proxy http://192.168.1.xxx:xxx
git config --global https.proxy http://192.168.1.xxx:xxx
版权声明:本文为qq_32880013原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。