Answer by sarvagya kumar for How to configure an existing git repo to be...
In addition to the above answers of allowing a group to read/write you also need to add the user to the group (say "foo").sudo usermod -a -G [groupname] [username]Note: you will have to first create...
View ArticleAnswer by Andrea for How to configure an existing git repo to be shared by a...
Merging @David Underhill and @kixorz answers, I made my own (definitive) solution.It is for bare repos and non-bare repos. There are only little differences between them, but in this way is...
View ArticleAnswer by nerfologist for How to configure an existing git repo to be shared...
This is probably not necessary, but it's worth pointing out that git init --bare --shared also sets the denyNonFastForwards option.git config receive.denyNonFastForwards trueThe meaning of this option...
View ArticleAnswer by adamkonrad for How to configure an existing git repo to be shared...
In the repo dir execute following commands:git config core.sharedRepository groupchgrp -R foo repodirchmod -R g+w repodirEdit: To address frequent confusion, group is an actual keyword, you're not...
View ArticleAnswer by David Underhill for How to configure an existing git repo to be...
Try this to make an existing repository in repodir work for users in group foo:chgrp -R foo repodir # set the groupchmod -R g+rw repodir # allow the group to read/writechmod g+s `find repodir -type d`...
View ArticleHow to configure an existing git repo to be shared by a UNIX group
I have an existing git repo (a bare one) which has up to this point only been writable by me. I want to open it up to some UNIX user group, foo, so that all members of foo can push to it. I'm aware...
View Article
More Pages to Explore .....