Git fatal: remote end hung up

前端 未结 11 652
北海茫月
北海茫月 2020-12-01 12:23

So I thought I had finally got everything setup on Windows ... then ran into this issue.

Current setup

URL: ssh://user@host:port/myapp.git

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 12:47

    We had same problem and here is solution how we solved the problem:

    at first we got:

    zajdan@cyberFuture:~$ git clone ssh://nette@19X.16X.14X.7X/~repos/erotika.git/ erotika
    Initialized empty Git repository in /home/zajdan/erotika/.git/
    Password: 
    fatal: '/repos/erotika.git': unable to chdir or not a git archive
    fatal: The remote end hung up unexpectedly
    zajdan@cyberFuture:~$ 
    

    solution:

    zajdan@cyberFuture:~$ git clone ssh://nette@19X.16X.14X.7X/~/repos/erotika.git/ erotika
    

    after tilde there must be a slash!

提交回复
热议问题