xpt
xpt

Reputation: 22984

github pull request from a single branch

I have forked a master from upstream, and have created two branches from it. Is it possible to send in PR from a single branch?

I did that, and despite the github web UI is creating the PR against a single branch, I noticed the changes from the other branch is included in the PR request as well.

What's the correct way to send in PR from a single branch?

Upvotes: 1

Views: 211

Answers (1)

h.mon
h.mon

Reputation: 258

The likely problem is you didn't git checkout master before creating the second branch, then the second branch you created is descendant from the first branch you created. Just checkout to master before adding the second branch.

Upvotes: 3

Related Questions