Created
December 11, 2013 21:34
-
-
Save victorono/7918864 to your computer and use it in GitHub Desktop.
repository git with permission 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
sudo groupadd developers | |
adduser username | |
usermod -a -G developers username | |
mkdir repository.git | |
cd !$ | |
git --bare init | |
touch readme.md | |
git add . | |
git commit -a -m "my first commit" | |
sudo chmod -R g+ws * | |
sudo chgrp -R developers * | |
git repo-config core.sharedRepository true | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment