I am running Ubuntu 12.04 and created a git server and gave some users access to one repos I created. I have trouble to download the repos using open SSH through command line, no putty nothing.
I am using this command to download the repos called training :
ssh://[email protected]:22/srv/git/training.git
and I tried a lot like
ssh://[email protected]:22/srv/git/training.git training
Using this tutorial : ted felix git server
The error I get is this :
fatal: '/srv/git/training/training' does not appear to be a git repository
fatal: Could not read from remote repository.
My suggestion is, that my repos is not setup correctly.
or I made a mistake with this ssh keys. Any Ideas? I can provide all information you need, just let me know what's missing.
EDIT : It works using the command line (git bash) ... intereseting
Output as requested of folder permissions
XXXXXX@DefaultEnvironment:~$ ls -la /svr/git/training
total 16
drwxr-sr-x 3 root git 4096 Feb 4 12:55 .
drwxrwsr-x 4 XXXXXX git 4096 Feb 4 12:40 ..
-rw-r--r-- 1 root git 9 Feb 4 12:55 catchmeifyoucan
drwxrwsr-x 8 root git 4096 Feb 4 12:56 .git
The git repo you've created isn't a bare repository. A bare repository is a repo without the working tree.
From git-scm
You can create a bare repo with:
Transforming a normal repo into a bare repo is not that hard, you can your best answer on StackOverflow