git init --shared=group test
groupadd git
chgrp -R git test
useradd test1 -g git passwd test1
useradd test2 -g git passwd test2
添加 denyCurrentBranch = ignore
centos7搭建git服务器(多用户版)
原文:http://blog.51cto.com/12173069/2324839