After a pull request is opened, you can change the base branch to compare the changes in the pull request against a different branch.

Warning: When you change the base branch of your pull request, some commits may be removed from the timeline. Review comments may also become outdated, as the line of code that the comment referenced may no longer be part of the changes in the pull request.

  1. Issues and pull requests tab selectionUnder your repository name, click Pull requests.

  2. In the "Pull Requests" list, click the pull request you'd like to modify.

  3. Pull Request edit buttonNext to the pull request's title, click Edit.
  4. Base branch drop-down menu In the base branch drop-down menu, select the base branch you'd like to compare changes against.
  5. Base branch change confirmation button Read the information about changing the base branch and click Change base.

Further reading