仅允许 git 用户创建功能分支、提交和创建拉取请求
Allow git user only to create feature branches, commit and create pull requests
如何仅允许 git 用户创建功能分支、提交它们并创建拉取请求?
不允许所有其他操作。
如果 he/she 正在处理与您相同的 repo,您可以简单地保护 master 分支 (on GitHub or on BitBucket or on GitLab)。
这样,同事将在一个单独的分支上工作。
另一个简单的解决方案是强制在 fork, in which he/she can do anything, and can only contribute back to the original repo through pull requests (or merge requests on GitLab)
上工作
如何仅允许 git 用户创建功能分支、提交它们并创建拉取请求?
不允许所有其他操作。
如果 he/she 正在处理与您相同的 repo,您可以简单地保护 master 分支 (on GitHub or on BitBucket or on GitLab)。
这样,同事将在一个单独的分支上工作。
另一个简单的解决方案是强制在 fork, in which he/she can do anything, and can only contribute back to the original repo through pull requests (or merge requests on GitLab)
上工作