如何更改拉取请求的基本分支? [英] How to change the base branch of a pull request?

查看:245
本文介绍了如何更改拉取请求的基本分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GitHub的项目上为特定的远程分支创建了一个pull请求。



如何将拉取请求更改为指向另一个分支(特别是 master

解决方案

更新:正如Michael在下面注释的,






旧回答



你不能。只需提出新的请求即可。


I created a pull request on project on GitHub to a specific remote branch. After some time, the remote branch was deleted.

How can I change the pull request to point to another branch (specifically master)?

解决方案

Updated: as Michael notes below, this is now possible:

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.

Click the Edit button by the title of the pull request to reveal the base branch selector.


Old answer

You can't. Just make a new pull request.

这篇关于如何更改拉取请求的基本分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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