Skip to content

Instantly share code, notes, and snippets.

@ophentis
Created May 23, 2012 08:47
Show Gist options
  • Save ophentis/2773972 to your computer and use it in GitHub Desktop.
Save ophentis/2773972 to your computer and use it in GitHub Desktop.
how to configure an existing git repo to be shared with unix group
#by David UnderHill @ http://stackoverflow.com/questions/3242282/how-to-configure-an-existing-git-repo-to-be-shared-by-a-unix-group
ex: share a git repo to a group called foo
chgrp -R foo repodir # set the group
chmod -R g+rw repodir # allow the group to read/write
chmod g+s `find repodir -type d` # new files get group id of directory
config.sharedRepository = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment