How to open multiple pull requests on GitHub

后端 未结 6 1179
攒了一身酷
攒了一身酷 2020-12-07 13:43

When I open a pull request on GitHub.
All commits since my last request and all new ones are automatically added to this request

6条回答
  •  执念已碎
    2020-12-07 14:13

    You actually CAN do this without creating another branch, but it takes a bit of playing around.
    Here's the steps:

    1. Identify the two commit ranges you want to pull. Here's what i'll use for an example:
      (other/master) A -> B -> C -> D -> E (yours/master)
      Let's say that you want to pull B and C in one request, and D & E in another.
    2. Make a pull request. Have the left side ("Base") be commit A. For the right side ("head"), type in the commit number of C.
    3. Write the description for your first request.
    4. Make another request. For the base, type in the commit number of C, and for the head, put E (yours/master).
    5. Write the description.

    As I see it, the pull request sees commit C as a branch point. Or something.

提交回复
热议问题