我在使用 Git 时遇到了奇怪的障碍。我正在尝试使用 Git Gui 将一些代码推送到 GitHub。我以前已经做过很多次了,但这是第一次在这台机器上。我已经像在其他计算机上一样设置了密钥,并将公钥添加到我的 GitHub 帐户中。但是,事情就变得奇怪了。我可以使用 Git Bash 很好地推送,但是当我尝试使用 Git Gui 推送时,它失败并出现错误...
fatal: The remote end hung up unexpectedly
就像我说的,我之前已经这样做过,并且我了解按键的工作原理,但我就是不能'弄清楚这个问题。我什至按照 GitHub 的建议进行了测试,使用命令...
ssh -T [email protected]
...并且得到了预期的响应...
Hi charlesbihis! You've successfully authenticated, but GitHub does not provide shell access.
但是,当我尝试使用 Git Gui 推送时,它再次失败。
更新:发布此问题后,我看到有一个在 Google 代码中打开的问题描述了我的确切问题。也许是 Git Gui 本身的问题?
I'm hitting a weird roadblock with Git. I'm trying to push some code to GitHub using Git Gui. I've done this many times before, but this is the first time on this machine. I've set up the keys like I've done on my other machines, and added the public key to my GitHub account. But, here's where things get weird. I can push just fine using Git Bash, but when I try and push using Git Gui, it fails with the error...
fatal: The remote end hung up unexpectedly
Like I said, I've done this before and I understand how the keys work, but I just can't figure this issue out. I've even tested as GitHub suggests, using the command...
ssh -T [email protected]
... and I get the expected response...
Hi charlesbihis! You've successfully authenticated, but GitHub does not provide shell access.
But again, when I try and push with Git Gui, it fails.
Update: After posting this question, I saw that there is an issue opened in Google Code that describes my exact problem. Perhaps it is a problem with Git Gui itself?
发布评论
评论(2)
您可以安装 Sourcertree:https://www.sourcetreeapp.com/。
它将使用您的 ssh 密钥,并且应该可以正常工作。
确保将 ssh 设置为 openssh 而不是 putty。
You caninstall Sourcertree: https://www.sourcetreeapp.com/.
It will use your ssh keys and it should work without any problems.
Make sure to set the ssh to openssh and not to putty.
您是否尝试过使用 Homebrew 安装最新的 Git 版本? Brew 有 git 1.7.10.2 并且 OSX 上的 git gui 至少对我有用。
Have you tried installing the newest Git version with Homebrew? Brew has git 1.7.10.2 and git gui on OSX works for me at least.