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)。

编辑:它使用我兄弟的电脑工作!(Git 1.8.0.? 在 Windows 上)。但这并不能解决我的问题。至少,它表明问题来自我自己的配置。

4

2 回答 2

8

好吧,看看这个小家伙有什么要说的。

Github

于 2012-12-23T00:14:06.877 回答
1

GitHub 已关闭。请参阅此站点以查看其服务器状态。 https://status.github.com/

于 2012-12-23T00:27:42.633 回答