Jamie Hutber
Jamie Hutber

Reputation: 28076

tortoisegit = fatal: the remote end hung up unexpectedly but not with git bash

The problems a bit of a weird one and after about 1 week of searching and just using bash i thought i'd ask you dudes.

Simple really whenever i try to push or pull via tortoisegit it asks me for the log in details once i enter them i get 'fatal: the remote end hung up unexpectedly'. I thought maybe i wasn't the right user so i changed myself to be the root: url = ssh://root@... but still not luck.

No idea what it might but maybe somebody else has had the same problem.

Any Clues guys?

[Edit] Fixed this sadly by uninstalling tortoisegit on windows, restarting and then reinstalling.

Upvotes: 5

Views: 3908

Answers (3)

I just had this same issue, and reinstalling did not help. I don't know if there was a server change (I'm not using Github), or if it's because I upgraded to Tortoise Git 1.8, or what. But, it used to ask for my username every time I tried to connect, while now it simply gives that error.

Turns out it was a settings issue. In the repository, under Tortoise Git --> settings --> remote, the URL was set to hostname.com:myRepo. This used to work, but apparently not anymore; I changed it to [email protected]:myRepo.

Now it works, and as a bonus it no longer asks me to enter my username every time I try to push/pull.

Upvotes: 1

Jamie Hutber
Jamie Hutber

Reputation: 28076

Fixed this sadly by uninstalling tortoisegit on windows, restarting and then reinstalling.

Upvotes: 1

Xitcod13
Xitcod13

Reputation: 6079

I had similar problem. After i changed https to http in the URL everything worked fine. Your connection wont be secure though.

When pulling files i use this URL

http://github.com/user / folder

Upvotes: 0

Related Questions