简体   繁体   中英

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.

  • I want to copy the changes made to the master branch to another branch.
  • I want the master branch be updated with the upstream branch
  • I want to update my pull request so that the commits are now made from the other branch rather than my master branch. Thank you.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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