git push origin master , invalid port number

我的梦境 提交于 2019-12-11 02:47:29

问题


when i do

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?

Thank you


回答1:


It depends the nature of "origin" repo.

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

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

It seems my git repo ended up with the wrong url

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

vs

git@github.com:visfleet/deprec.git


来源:https://stackoverflow.com/questions/2154195/git-push-origin-master-invalid-port-number

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!