我是 github 新手。我使用Ubuntu 14.04。我一直在尝试将我的第一个项目提交到 github,但出现错误:
fatal: unable to access 'https://github.com/tibrewalricha/myproject.git/': Failed to connect to github.com port 443: Network is unreachable
我正在关注 Install Github安装github教程。当我编写命令 git push origin master
时,出现上述错误。
我已经升级了git,甚至重新安装了它。但我一次又一次地遇到同样的错误。
最佳答案
使用ssh
。您无法在 https
网址上使用 ssh
键。
将 .git/config
存储库 URL 中的行从
url = https://github.com/tibrewalricha/myproject.git/
到
url = <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5c2ccd1e5c2ccd1cdd0c78bc6cac8" rel="noreferrer noopener nofollow">[email protected]</a>:tibrewalricha/myproject.git
并重复推送。它应该可以为您解决问题。
关于git - 无法在 github 中提交 : not able to connect port 443,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35115542/