在Github中将拉取请求合并到与默认不同的分支 [英] Merge pull request to a different branch than default, in Github

查看:295
本文介绍了在Github中将拉取请求合并到与默认不同的分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个拉请求进入我在Github上托管的repo。默认情况下它被合并到 master 分支中。



有没有办法让我改变哪个分支将被合并到?

解决方案

截至2015年8月15日 GitHub允许通过GUI更改拉取请求的目标分支:




现在可以更改打开的拉取请求的基本分支。创建拉取请求后,您可以修改基本分支,以便将拉取请求中的更改与不同的分支进行比较。通过更改原始拉取请求的基本分支,而不是使用正确的基本分支打开新分支,您将能够保留重要的工作和讨论。

A pull request comes into my repo hosted on Github. By default it is merged into the master branch.

Is there any way for me to change which branch the changes would be merged into?

解决方案

As of 15.08.2016 GitHub allows changing target branch of a pull request via GUI:

You can now change the base branch of an open pull request. After you’ve created a pull request, you can modify the base branch so that the changes in the pull request are compared against a different branch. By changing the base branch of your original pull request rather than opening a new one with the correct base branch, you’ll be able to keep valuable work and discussion.

这篇关于在Github中将拉取请求合并到与默认不同的分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆