Re: Question around git-shell usage in Everyday Git
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:18
Junio C Hamano [off-list ref] writes:
Do you mean to reuse single directory /home/gitu/ for user A, B, C,
and hang repositories /home/gitu/{X,Y,Z} for projects? I'd
imagine things could be arranged that way. User A and B but not
C may be in "projectX" group and /home/gitu/X is writable only
by projectX group members and such...OTOH, if you did things the way as you suggested:
URL:git@host.com:repository.git and in ~git/.ssh/authorized_keys putting all the developers public keys.
you cannot tell a person using one key to become "git" on that machine from another person using different key to become the same "git" on that machine; if you do not care about that then it is OK. That would work only when all of your git repositories are supposed to be accessible by everybody. But I suspect doing so would not let you have different projects with different subset of "git" users on your shared machine.