github - 我可以使用 Post-Receive URL Hook 中止推送吗?

标签 github

在 github 中,我只希望“integrator@mycompany.com”有权推送到 master 分支。我可以使用 github 提供的“Post-Receive URL Hook”来完成吗?

最佳答案

我会保留两个 repo 协议(protocol)。 integrator@mycompany.com 维护“主” repo 协议(protocol),另一个 repo 协议(protocol)是它的一个分支。每当任何人想要将某些东西放入 main - 他们会发出拉取请求(或使用格式补丁并邮寄)并且集成商可以将其合并到 main 中。

integrator@mycompany.com 最好也维护 fork 的 repo - 在那里合并 main(git fetch upstream 等)。

关于github - 我可以使用 Post-Receive URL Hook 中止推送吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7933446/

相关文章:

Github 企业 - 远程 : Password authentication is not available for Git operations

git - 如何从 Git/Github 图表中删除旧提交?

git - 如何检查两个分支是否为 "even"?

jQuery.get 函数在 Github Pages 中不起作用

Git commit 显示总文件替换而不是逐行更改

github - 有没有办法在 github README.org (org-mode) 中显示可折叠的内容?

python - 创建 github 存储库

Git 克隆不工作 - 错误 443

git: 'lfs' 不是 git 命令不清楚

git - 保护文件免受 Git 攻击