Thomas
Thomas

Reputation:

fatal: Not a Git Repository

So I have SSH working now no problemo and I have setup a new git repo in my

/home/Tom/Git/myapp.git

I provided access to another drive for hosting the repo so the directory "Git" actually exists on D:\ using

ln -s /cygdrive/d/Git/myapp.git

Now when I attempt to clone my git repo using

ssh://name@ipaddress:port/Git/myapp.git

I get a

fatal: '/Git/myapp.git' does not appear to be a git repository

Any ideas ?

Edit: I even created a directory just inside /Tom/myapp.git and tried to use

git clone ssh://name@ipaddress:port/myapp.git

And i still get the error? Also try

git clone -v ssh://name@ipaddress:port/~/myapp.git

Error is

fatal: '~/myapp.git' does not appear to be a git repository
Initialized empty Git repository in D:/Local/myapp/.git/
fatal: The remote end hung up unexpectedly

Upvotes: 8

Views: 21494

Answers (1)

Michael Krelin - hacker
Michael Krelin - hacker

Reputation: 143229

Try

git clone ssh://name@ipaddress:port/~/Git/myapp.git

(the important bit is ~ path component).

Upvotes: 10

Related Questions