推送到Github失败

3
最近我在Github上创建了我的第一个Gi代码库,使用仔细阅读http://git-scm.com/documentation后没有任何问题地克隆了它。我在互联网上找不到有相同问题的人。我尝试了2个不同版本的Git:第一个是1.7.9.5(来自apt-get),然后是1.8.1-rc2(来自源码),但最终回到了1.7.9.5(来自apt-get)。我尝试过HTTP和SSH(使用https://help.github.com/articles/generating-ssh-keys)。当使用HTTPS(Git 1.7.9.5)进行推送时,我得到了以下结果:
**$ git push https://github.com/Vulpo/PR3003-2012.git master**
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-lsOUEX/pkcs11: No such file or directory
Username for 'https://github.com': Vulpo
Password for 'https://Vulpo@github.com': 
error: RPC failed; result=56, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

使用SSH(git 1.7.9.5):

**$ git push git@github.com:Vulpo/myproject.git master**
Enter passphrase for key '/home/Vulpo/.ssh/id_rsa': 
Counting objects: 19, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (18/18), 735.94 KiB, done.
Total 18 (delta 4), reused 0 (delta 0)
Write failed: Connection timed out
Write failed: Broken pipe
fatal: The remote end hung up unexpectedly

使用HTTPS(git 1.8.1-rc2):
**$ git push origin master**
Username for 'https://github.com': Vulpo
Password for 'https://Vulpo@github.com': 
Counting objects: 21, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (19/19), 736.04 KiB, done.
Total 19 (delta 5), reused 0 (delta 0)
error: RPC failed; result=55, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: recursion detected in die handler
Everything up-to-date

使用SHH (git 1.8.1-rc2) :

**$ git push git@github.com:Vulpo/myproject.git master**
Enter passphrase for key '/home/renardc/.ssh/id_rsa': 
Counting objects: 21, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (19/19), 736.04 KiB, done.
Total 19 (delta 5), reused 0 (delta 0)
Write failed: Broken pipe
fatal: The remote end hung up unexpectedly
fatal: recursion detected in die handler

这是我的 git config -l 配置:
user.name=Vulpo
user.email=vulpo@my.mail
core.autocrlf=input
core.safecrlf=true
core.editor=vim
merge.tool=vimdiff
http.postbuffer=524288000
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
remote.origin.url=https://github.com/Vulpo/myproject.git
branch.master.remote=origin
branch.master.merge=refs/heads/master

似乎网上没有人遇到过这个问题。有人有什么想法吗?
我尝试了稍后再试(即使我确定这不是因为任何github维护),但它也没有起作用。我可以推送一个非常轻的文件,但不能上传我真正想要上传的文件(2.3MBytes)。
编辑:在我的浏览器电脑上使用它起作用了!(Windows上的Git 1.8.0.?)。但它并没有解决我的问题。至少,它显示问题来自于我的配置。

6
哈哈,哇。那看起来真的很糟糕。你是什么时候尝试的?我查看了https://status.github.com/ ,似乎目前有某种故障。(“我们目前在所有服务上都遭遇了重大的服务中断。”) - Ry-
1
https://github.com/blog/1363-scheduled-maintenance-windows - ctor
我克隆了代码并尝试在周六下午(GMT+1)推送,Github没有显示任何维护问题。现在我仍然有同样的问题。有没有网站可以查看每个错误代码的含义?我正在使用Linux(Ubuntu 12.04)。我不知道为什么,但现在我无法在Github上创建新存储库(我不知道为什么存储库名称检查非常长,然后显示一个没有消息的红色警告,即使是随机名称,但这是另一个问题)。我刚刚尝试了推送一个测试文件,它可以工作。但是我想要推送的东西(2.3MByte)无法正常工作。 - Vulpo
看一下这个,和我遇到的问题一样:http://askubuntu.com/questions/218728/connection-timeout-when-accessing-github - Felipe
2个回答

8

嗯,看看这个小家伙想说什么。

Github


(Note: 没有需求需要翻译图片中的文字)

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接