GIT Extensions – Push – “fatal: The remote end hung up unexpectedly”

I am trying to push a self-hosted server repository to Git using Git extensions. I can do it OK using the command line but using Git extensions it comes up with the message:

c:\Program Files (x86)\Git\bin\git.exe push --recurse-submodules=check "Specflow.Infrastructure.git" master:master
fatal: The remote end hung up unexpectedly

I tried all of these combinations for the repository:


But same problem. However when I run the command mentioned in the error:

c:\Program Files (x86)\Git\bin\git.exe push --recurse-submodules=check "Specflow.Infrastructure.git" master:master

It works!

I read something about setting the HOME environment variable to be your home directory. I check that this directory does contain the .ssh folder and it does, with the correct details. So I set the HOME variable and restarted my machine. Same problem!

The other answers to this questions are for similar but different scenarios where a specific error message is produced between the words “Done” and “Fatal” hence the need for this question.

  • Files get committed with the wrong file encoding
  • Check in single file in Git?
  • Configure SSH for Git - cannot find after creating a key
  • Git Extension for Visual Studio
  • Failed to run repack in git gc
  • Interactive rebase with Git Extensions
  • How to clone another repo in another PC with GIT extensions?
  • How do I use VisualStudio git extensions to access remote repository using password access?
  • One Solution collect form web for “GIT Extensions – Push – “fatal: The remote end hung up unexpectedly””

    I had this same problem. I fixed it by going into the Settings -> Settings in Git Extensions. I then clicked on the SSH tab and selected openSSH in the “Specify SSH client to use”. I originally had it set to PuTTY.

    Git Baby is a git and github fan, let's start git clone.