简体   繁体   English

如何从同一个分支创建 2 个拉取请求

[英]How to create 2 pull requests from the same fork

How to create 2 pull requests with different changes but in the same fork and at the same time?如何在同一个分叉中同时创建 2 个具有不同更改的拉取请求?

I have tried to use the same branch, but the changes of the second PR are committed in the first one我尝试使用相同的分支,但是第二个 PR 的更改在第一个 PR 中提交

Note that a pull request is a "request to merge a branch into master/main".请注意,拉取请求是“将分支合并到 master/main 中的请求”。 So if you want to create another pull request you just need to create an additional branch.所以如果你想创建另一个拉取请求,你只需要创建一个额外的分支。

There are two options:有两种选择:

  1. Split changes into different branches locally, push the new branches and create the PRs.将更改拆分到本地的不同分支,推送新分支并创建 PR。
  2. Cherry-pick using Github's UI for cherry-picking (help here ) Cherry-pick 使用 Github 的 UI 进行 cherry-picking( 在此处提供帮助)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM