【问题标题】:Git unable to push to git repository [duplicate]Git无法推送到git存储库[重复]
【发布时间】:2014-03-15 13:20:45
【问题描述】:

当我尝试推送到 git 存储库时,我收到以下错误。请帮忙解决这个问题

Test@DT0610QV14001 ~/hello (master)
$ git push -u origin master
fatal: unable to access 'https://github.com/babupca/hello.git/': Failed connect to github.com:443; No error

【问题讨论】:

  • 总是?或者有时?您的网络中有代理服务器吗?
  • 或许你应该尝试通过 SSH 推送。
  • 总是出现这个错误
  • 如何使用SSH推送,可以指导一下

标签: git github


【解决方案1】:

通常当通过 HTTPS 推送失败时,值得尝试切换到 SSH:

git remote set-url origin git@github.com:babupca/hello.git

当然,你的 Github SSH 密钥是 set up

更新:如果SSH方式给你类似的错误,检查related thread

更新:如果你知道你在代理后面,请检查another related thread

【讨论】:

  • 我已经为 github 设置了 ssh,但我仍然遇到同样的错误。可能会被屏蔽
  • 有什么方法可以推送我的更改
  • $ ssh -vT git@github.com OpenSSH_4.6p1,OpenSSL 0.9.8e 2007 年 2 月 23 日 debug1:连接到 github.com [192.30.252.129] 端口 22。 debug1:连接到地址 192.30。 252.129 端口 22:尝试连接超时未建立连接 ssh:连接到主机 github.com 端口 22:错误文件号
  • This thread 可能会对您有所帮助。
  • 如果 HTTPS 和 SSH 都不适合你,可能你在代理后面。请参阅有关getting trough it 的帖子。
猜你喜欢
  • 2011-03-14
  • 1970-01-01
  • 2021-09-09
  • 2018-06-24
  • 2013-07-04
  • 2010-10-25
  • 2013-04-11
相关资源
最近更新 更多