Push with Git Bash works, but fails with Git Gui

1.2k views Asked by At

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

There are 2 answers

0
user1338062 On

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.

0
CodeWizard On

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.

enter image description here