github - 限制协作者只能推送到特定分支

标签 github

是否可以将协作者设置为仅从特定分支拉取/推送。或者就此而言,无法对 Master 进行更改?

最佳答案

如果您的仓库属于一个组织,您可以启用分支限制设置并选择谁可以推送到受限分支。

https://help.github.com/articles/about-branch-restrictions/

https://help.github.com/articles/enabling-branch-restrictions/

关于github - 限制协作者只能推送到特定分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38665267/

相关文章:

github - 如何为多个 Google Cloud Functions 设置一个 GitHub 存储库?

git - 未在 GitHub 上显示为贡献者

git - 是否可以从 Google 云端硬盘管理 GIT 非裸仓库?

github - push failed 错误信息 github large files

java - Gradle 依赖项是否不如将 jar 下载到 libs 安全?

git - .gitignore 文件是否适用于所有分支?

github - Github 用户 ID 的数据类型

git - 从 GitHub 中删除分支

git - 将上游 git 更改与挂起的 pull 请求 merge

git - 如何将代码推送到 stash API key 的 Github?