有没有办法从基础分支继承规则以避免在 GitHub 的子分支上重新创建规则?

发布于 2025-01-20 15:22:20 字数 211 浏览 3 评论 0原文

如何在基本分支上应用规则,然后将这些规则继承到 GitHub 中从该基本分支创建的其他分支?

假设我将主分支作为基础分支,然后我将一些规则应用于主分支。现在,如果我从该基本分支 main 创建其他分支(main-1、main-2),是否有办法自动将基本分支(main)规则应用于子分支(main-1、main-2)?

这将避免为每个不同的子分支重新创建规则。

谢谢。

How to apply the rules on the base branch and then inherit those rules to other branches created from that base branch in GitHub?

Let's say I have the main branch as the base branch, and then I apply some rules to the main branch. Now if I create other branches (main-1, main-2) from that base branch main, is there a way to automatically apply the base branch (main) rules to the child branches (main-1,main-2)?

This would avoid recreating the rules for each different child branch.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文