如何配置要由UNIX组共享的现有git repo

我有一个现有的git repo(一个裸的),到目前为止只有我可写。我想打开它到一些UNIX用户组,foo,所以foo的所有成员可以推送到它。我知道,我可以轻松地设置一个新的git repo:
git init --bare --shared=group repodir
chgrp -R foo repodir

但我需要一个现有的repo dir的等效操作。

尝试此操作以使群组foo中的用户在repodir中使用现有存储库:
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
git init --bare --shared=all repodir # sets some important variables in repodir/config ("core.sharedRepository=2" and "receive.denyNonFastforwards=true")

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...