git - 无法在 github 中提交 : not able to connect port 443

标签 git github ssh ubuntu-14.04 ssh-keys

我是 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/

相关文章:

Git Bash (mintty) 在 Windows 10 操作系统上速度极慢

git - 如何在本地运行 VSTS 构建定义序列而不推送到存储库

git - 移动整个 git repo 目录

git - 如何将一个存储库的分支推送到另一个存储库中的新分支?

bash - 如何检查与bash中服务器列表的连接?

node.js - 如何使用多个嵌套的私有(private) Node 模块?

go build 找不到修订版

security - GitHub 和源代码保护和控制

python - 标准错误上的 Paramiko recv()/read()/readline(s)() 返回空字符串

unix - 在通过 ssh 的 nohup 期间我 ctr+c 之后会发生什么?