【问题标题】:git push origin master , invalid port numbergit push origin master,端口号无效
【发布时间】:2010-01-28 11:48:23
【问题描述】:

当我这样做时

git push origin master

我收到一条警告消息“端口号无效”,在控制台上我可以看到 "致命:远端意外挂断"

请有人帮我解决我做错了什么?

谢谢

【问题讨论】:

    标签: git push


    【解决方案1】:

    这取决于“来源”回购的性质。

    以 GitHub 为例,你 need a git@github.com: URL to be able to push

    我的 ssh 按预期工作,我可以毫无问题地推送到acts_as_eav。

    知道是什么原因造成的吗?

    rasheed@rashbuntu:~/deprec$ git push -v
    Pushing to git://github.com/visfleet/deprec.git
    Looking up github.com ... done.
    Connecting to github.com (port 9418) ... 207.97.227.239 done.
    fatal: The remote end hung up unexpectedly
    

    我的 git repo 似乎以错误的 url 结尾

    git://github.com/visfleet/deprec.git
    

    git@github.com:visfleet/deprec.git
    

    【讨论】:

      猜你喜欢
      • 2021-07-14
      • 1970-01-01
      • 2021-04-13
      • 2012-09-09
      • 2015-12-08
      • 2017-09-21
      • 2011-08-07
      • 1970-01-01
      • 2018-09-30
      相关资源
      最近更新 更多