无法在 github 中提交:无法连接端口 443
Not able to commit in github: not able to connect port 443
我是 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 = git@github.com:tibrewalricha/myproject.git
并重复推送。它应该能为您解决问题。
我是 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 = https://github.com/tibrewalricha/myproject.git/
到
url = git@github.com:tibrewalricha/myproject.git
并重复推送。它应该能为您解决问题。