GitHub可以自动合并分支吗?

编程入门 行业动态 更新时间:2024-10-25 02:27:49
本文介绍了GitHub可以自动合并分支吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

只要要对master进行任何更改,我们都希望自动从master合并到另一个长期存在的分支(此刻,这是一个手动过程,人们会忘记)

我理解由于合并冲突,并非总是可能的,但是如果可能的话,我们希望它会自动发生.

这可能吗?

解决方案

自2020年12月16日开始提供

本地GitHub自动合并是2天前在GitHub Universe上引入的.

提示:您要防止合并的分支堆积吗?也启用自动分支删除

来源

虽然这可能不仅仅是用例所需要的,但它可以与GitHub Actions一起使用,以更轻松地到达那里.

We want to automatically merge out from master to another long-lived branch whenever any changes are committed to master (at the moment, this is a manual process and people forget)

I appreciate that it may not always be possible, owing to merge conflicts, but if it is possible, we'd like it to happen automatically.

Is this possible?

解决方案

Is available since 2020-12-16

The native GitHub Auto-Merge was introduced on GitHub Universe 2 days ago.

How to active them? Go to Settings of your repository, e.g. github/rectorphp/rector/settings, then ↓


Tip: do you want to prevent merged branch piling up? Enable autobranch removal too

Source

While it might not be solely what you need to you for your use case, it can be used with GitHub Actions to get there more easily.

更多推荐

GitHub可以自动合并分支吗?

本文发布于:2023-11-08 11:13:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569209.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以自动   分支   GitHub

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!