simple multi user git server setup
This is a very simple, yet effective setup for multi user git servers. I'm using file-system permissions for managing users and use ssh for remote access.
- get an ssh server up and running.
- create a new user for each git repository. (eg. sudo adduser git-my-project)
init git repo
sudo su git-my-project cd -- git init --bare --shared=group my-project.git
add user to according group
sudo adduser devuser1 git-my-project sudo adduser devuser2 git-my-project
clone repo
git clone 'ext::ssh -i .../.ssh/id_rsa devuser1@repo.buzzmark.com %S /home/git-my-project/my-project.git'