无法在 github 中提交:无法连接端口 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

我正在按照安装 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

并重复推送。它应该为您解决问题。

最新更新