I have a git repo on DreamHost that I would like to be able to share with other developers. I am only able to create it in my home directory. How do I get it so that other devs can access it via ssh? Here's what I've tried:
I created a group, put all devs into that group and chowned the repo to be owned by the group. If I clone the repo as me like this:
git clone ssh://ME@host/~/projects/repo.git
Then it works. I tried having them use their ssh credentials to clone the resource like this:
git clone ssh://THEM@host/home/ME/projects/repo.git
and that failed. So then I tried making a softlink in their home to the repo in mine and having them do:
git clone ssh://THEM@host/~/projects/repo.git
And that failed.
-= Update =- My directory structure looks like this:
~/projects/repo.git
Where both project
and repo.git
are owned by my git group and have drwxrwx---
permissions. When I try:
ssh://THEM@host/~ME/projects/repo.git
I get
fatal: '~ME/projects/repo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly`