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
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!