我可以在新的 GitLab 存储库中设置我的文件权限吗?
Can I set my file permission in new GitLab repository?
我有一个工作的 GitLab 系统 (8.3.4),我的问题是当创建新存储库时,权限如下所示:
-rw-r--r-- 1 nobody crontab 91 Jan 29 11:36 config
-rw-r--r-- 1 nobody crontab 73 Jan 29 11:36 description
-rw-r--r-- 1 nobody crontab 23 Jan 29 11:36 HEAD
lrwxrwxrwx 1 nobody crontab 47 Jan 29 11:36 hooks -> /opt/gitlab/embedded/service/gitlab-shell/hooks/
drwxr-xr-x 2 nobody crontab 4096 Jan 29 11:36 hooks.old.1454063797/
drwxr-xr-x 2 nobody crontab 4096 Jan 29 11:36 info/
drwxr-xr-x 4 nobody crontab 4096 Jan 29 11:36 objects/
drwxr-xr-x 4 nobody crontab 4096 Jan 29 11:36 refs/
我是否有可能通过 GitLab 为组添加写权限以获得类似于我使用 chmod g+w -R .
实现的结果?
如果不是- 是否可以创建一个挂钩 运行 在创建带有第一次(初始化)提交的存储库时?
请为用户的 bash 启动文件设置以下 umask 值(~/.bashrc 或 ~/.profile 或 ~/.bash_profile)
umask 0002
使用 umask 0002 组新文件权限的值将是 rw。
我有一个工作的 GitLab 系统 (8.3.4),我的问题是当创建新存储库时,权限如下所示:
-rw-r--r-- 1 nobody crontab 91 Jan 29 11:36 config -rw-r--r-- 1 nobody crontab 73 Jan 29 11:36 description -rw-r--r-- 1 nobody crontab 23 Jan 29 11:36 HEAD lrwxrwxrwx 1 nobody crontab 47 Jan 29 11:36 hooks -> /opt/gitlab/embedded/service/gitlab-shell/hooks/ drwxr-xr-x 2 nobody crontab 4096 Jan 29 11:36 hooks.old.1454063797/ drwxr-xr-x 2 nobody crontab 4096 Jan 29 11:36 info/ drwxr-xr-x 4 nobody crontab 4096 Jan 29 11:36 objects/ drwxr-xr-x 4 nobody crontab 4096 Jan 29 11:36 refs/
我是否有可能通过 GitLab 为组添加写权限以获得类似于我使用 chmod g+w -R .
实现的结果?
如果不是- 是否可以创建一个挂钩 运行 在创建带有第一次(初始化)提交的存储库时?
请为用户的 bash 启动文件设置以下 umask 值(~/.bashrc 或 ~/.profile 或 ~/.bash_profile)
umask 0002
使用 umask 0002 组新文件权限的值将是 rw。