Git pull and fetch fail with "fatal: remote end hang up unexpectedly"

From cygwin git to Win7 I am trying to coordinate work with my Linux workstation. Both were cloned from one upstream vault. First I create a "git fetch origin" and then try to extract from my workstation.

$ git fetch origin
[... all ok ...]
$ git fetch b
scheib@b password:
remote: Counting objects: 2031, done.
remote: Compressing objects: 100% (512/512), done.
fatal: The remote end hung up unexpectedly
fatal: early EOFs:  23% (182/789)
fatal: index-pack failed
+3
source share
2 answers

Cygwin ssh.exe has this error. Replace cygwin ssh.exe with ssh.exe from the msysgit installation and this problem will disappear.

Related: Git fatal: remote end freezes

0
source

How did you create your keys?

With cygwin git or with mingw git in git bash?

, , cygwin ssh .ssh /home/name/.ssh mingw git ssh .ssh c:/user/name/.ssh

, .

cygwin.ssh -i ssh /home/name/.ssh/config.

, :

Host github.com
    User jerryasher
    Hostname github.com
    IdentityFile c:/Users/jerry/.ssh/id_rsa

, mingw git git bash, cygwin git rxvt github.

-1

Source: https://habr.com/ru/post/1776590/


All Articles