作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
<分区>
我最近在 Github 上创建了我的第一个 gi 存储库,我小心地克隆了它没有问题 http://git-scm.com/documentation .我发现互联网上没有人遇到同样的问题。我尝试了 2 个不同版本的 Git:首先是 1.7.9.5(来自 apt-get),然后是 1.8.1-rc2(来自 sources),但最后又回到了 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.?)。但这并不能解决我的问题。至少,它表明问题出在我自己的配置上。
我是一名优秀的程序员,十分优秀!