开发者

git push origin master , invalid port number

开发者 https://www.devze.com 2022-12-18 21:49 出处:网络
when i do git push origin mas开发者_JAVA百科ter i get an alert message \"invalid port number\" and on the console i can see

when i do

git push origin mas开发者_JAVA百科ter

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


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
0

精彩评论

暂无评论...
验证码 换一张
取 消