从工作中推送到github“坏文件编号”错误 [英] pushing to github from work "Bad file number" error

查看:94
本文介绍了从工作中推送到github“坏文件编号”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的电脑上安装了msysgit。我配置它在家中与github一起工作,一切都很顺利。
在工作中它没有:

  D:\rails_tutorial_projects\ first_app> git push --verbose 
推送到git@github.com:Monomachus / DemoRubyApp.git
ssh:连接到主机github.com端口22:错误的文件编号
致命的:远程结束了意外挂断

我读到了关于智能HTTP支持 https://github.com/blog/642-smart-http-support

但似乎它不起作用。我做了克隆和所有那些没有问题的东西,但是当我尝试将变化推回到github时,这就是出现相同问题的地方。

我的msysgit版本是git版本1.7.3.1.msysgit.0



请帮助我处理这种尴尬的情况。

解决方案

也是通过代理服务器尝试推送/克隆等引起的。既然你提到你在做生意,他们是否在那里使用代理服务器?

错误在于git字面上说:嘿,文件不存在,因为它无法通过代理服务器。


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.

解决方案

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.

这篇关于从工作中推送到github“坏文件编号”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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