Anish Hota
Anish Hota

Reputation: 61

Git change the source branch of a pull request

Instead of making changes in another branch and making a pull request from that branch, i made the changes in the master branch and made the pull request.Now, i want to edit the pull request.

Upvotes: 6

Views: 2242

Answers (1)

janos
janos

Reputation: 124648

I want to update my pull request so that the commits are now made from the other branch rather than my master branch.

I'm afraid this is not possible. The GitHub interface only allows to change the destination branch* to merge into, not the source branch.

* This was added in 2016 August. I find the title of the announcement misleading, because what they call the "base branch", is the branch to merge into, not the source branch to merge from. I don't know if there are plans to add support for this.

Upvotes: 5

Related Questions