pushing to github from work “Bad file number” error

人走茶凉 提交于 2019-12-18 19:08:52

问题


I got msysgit installed at my computer. And I configured it to work with github at home, where everything went fine. At work it doesn't:

D:\rails_tutorial_projects\first_app>git push --verbose
Pushing to git@github.com:Monomachus/DemoRubyApp.git
ssh: connect to host github.com port 22: Bad file number
fatal: The remote end hung up unexpectedly

I read about Smart HTTP Support https://github.com/blog/642-smart-http-support
But it seems that it doesn't work too. I make clone and all that stuff without problems but when I try to push changes back to github this is where the same problems came in.
My msysgit version is git version 1.7.3.1.msysgit.0

Please help me with this awkward situation.


回答1:


This error is also caused by attempting to push/clone etc. through a proxy server. Since you mentioned you are at a business, do they use a proxy server there?

The error is git literally saying, "hey, the file isn't there", because it can't get through the proxy server.



来源:https://stackoverflow.com/questions/4399106/pushing-to-github-from-work-bad-file-number-error

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