Bob Zoller

ruby, rails, san francisco, photography, startups, food

Find me on:
 - github
 - linkedin
 - flickr

shared git repo (using ssh transport)

As a quick followup to my last post, here’s the steps I took to make my remote git repo usable by a group of developers, not just me:

/etc/group

After you’ve added accounts for everyone, make a group and add everyone to it. This line should look something like:

coders:x:114:bob,docyes,phillip

git repo-config

After creating the remote repo (git —bare init), we need to set the core.sharedRepository variable to “group” - this tells git to create directories and files with group-write permissions.

git repo-config core.sharedRepository group

fix permissions

Now that git will do the right thing, we need to fix the permissions on the existing files and directories.

sudo chgrp -R coders .
sudo chmod -R g+ws .