Created
May 23, 2012 08:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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