unix - Git: repo for multiple users on a server -


i created git repo on server , want used several people, i.e. users belong same unix group. has working copy because may useful have common working copy.

thus set owning group of git repo directory unix group.

the problem is, every time pushing repository, new files/directories have owner set username of user , group not our common group. also, new files/directories become rwxr-xr-x.

i tried git config core.sharedrepository group doesn't work. makes files/directories rwxrwsr-x has still wrong group set.

ok, figured out.

the first important thing (which did already) was:

git config core.sharedrepository group 

the second 1 this:

chmod g+s -r . 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -