Tim
Tim

Reputation: 99536

Can I create a second pull request for the same branch to be merged into a different branch?

on my local repository, I created a feature branch A from branch B. I did some work on branch A, and pushed it to github, and created a pull request to ask for merging branch A into branch B.

While the pull request is still open, I am asked to create a second pull request to ask for merging branch A into branch C. I can't find out where I can create the second pull request. How can I do that?

Upvotes: 0

Views: 1501

Answers (1)

jpvillaisaza
jpvillaisaza

Reputation: 440

You need to get to the compare page for branches A and C. The URL looks something like this:

https://github.com/user/repository/compare/C...A

If there's no pull request to merge A into C, then you'll see a Create pull request button.

To get there without writing the URL manually, go to the branches page in your repository and open the one you want to use to open the pull request (A). Then, click on Compare, which will open the compare page for the default branch (master) and the given branch. Finally, change the base branch if it's a branch other than the default one.

Upvotes: 1

Related Questions