0

我有一个要求,因为每当我将更改推送到我的 git 分支时,它必须自动将我的提交合并到另一个常见的 git 分支。有没有办法或工具来自动化这个?

4

2 回答 2

0

你可以看到https://gist.github.com/jijita/363ffcfa467979343ec3。它展示了如何自动化 git merge

于 2015-02-03T01:50:42.093 回答
0

There is nothing out of the box, but you might be able to build something like this with hooks.

But as Kugathasan Abimaran noted, how would you solve any merge conflicts? The only way this could work out is when the "other common git branch" is always only merged from the same branch and never modified in any other way. But then why would you need it at all?

于 2013-10-29T07:20:14.423 回答