Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had been using Tortoise Git from my windows PC to connect to GitHub as well as a local server. One of my OS drives failed (raid 0) so now I'm tasked with getting it back up to speed.

I've been trying to connect via ssh for most of the morning but keep getting the following error code:

git did not exit cleanly (exit code 128) (12278 ms @ 12/3/2012 4:36:55 PM)

I'm fairly certain this isn't a credentials issue as I can connect via terminal on both my Linux box and MacBook. The process prompts for my password then fails with the following error:

Cloning into 'C:\Users\User\Documents\xxxxxx_docs'...

fatal: '/home/User/repos/xxxxxxx_docs' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

It is a git repository and I just cloned it on my Mac. I'm at a loss, any ideas?

share|improve this question
Have the ssh user permissions for reading(/writing) /home/User/repos/xxxxxxx_docs/.git subdirectory? – Jan Marek Dec 4 '12 at 7:44
I checked permissions, Everything looks good. Also, I'm using the same user to SSH from my Mac, Linux Box and PC. I can push/pull from mac and Linux. if it were a permissions issue wouldn't I have issues from everywhere? – Bms85smb Dec 4 '12 at 15:47
Yes, you are right, it is for every system the same. Please, can you check again URL of remote repository? Is exactly the same, as on the other systems? – Jan Marek Dec 5 '12 at 12:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.