从工作中推送到 github “错误文件号”错误
我的电脑上安装了 msysgit。我将它配置为在家里与 github 一起使用,一切都很顺利。 在工作中它不会:
D:\rails_tutorial_projects\first_app>git push --verbose
Pushing to [email protected]:Monomachus/DemoRubyApp.git
ssh: connect to host github.com port 22: Bad file number
fatal: The remote end hung up unexpectedly
我读到了有关智能 HTTP 支持的信息 https://github.com/blog/642-智能http支持
但似乎也不起作用。我克隆和所有这些东西都没有问题,但是当我尝试将更改推回 github 时,这就是出现同样问题的地方。
我的 msysgit 版本是 git 版本 1.7.3.1.msysgit.0
请帮助我解决这个尴尬的情况。
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 [email protected]: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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误也是由于尝试通过代理服务器推送/克隆等引起的。既然你提到你在一家公司,他们那里使用代理服务器吗?
错误是 git 字面意思是“嘿,文件不存在”,因为它无法通过代理服务器。
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.