git push origin master,无效的端口号 [英] git push origin master , invalid port number

查看:158
本文介绍了git push origin master,无效的端口号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我这样做

git push origin master

git push origin master

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

i get an alert message "invalid port number" and on the console i can see "fatal: The remote end hung up unexpectedly"

请有人可以帮助我我在做什么错吗?

Please could someone help me what i am doing wrong?

谢谢

推荐答案

这取决于来源"的性质,回购.

It depends the nature of "origin" repo.

例如,对于GitHub,您

For GitHub, for instance, you need a git@github.com: URL to be able to push

我的ssh可以正常工作,我可以毫无问题地推送到acts_as_eav.

My ssh works as expected, and I can push to acts_as_eav no problems.

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

Any idea whats causing this?

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最终以错误的网址结尾

It seems my git repo ended up with the wrong url

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

vs

git@github.com:visfleet/deprec.git

这篇关于git push origin master,无效的端口号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆