Skip to main content

Changing the base branch of a pull request

Modify the base branch of an open pull request to compare changes against a different branch and ensure accurate updates.

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 because the line of code that the comment referenced may no longer be part of the changes in the pull request.

  1. Under your repository name, click Pull requests.

  2. In the "Pull Requests" list, click the pull request you want to modify.

  3. Next to the pull request title, click Edit title .

  4. In the base branch drop-down menu, select the base branch you'd like to compare changes against.

    Screenshot of a pull request title. The dropdown to change the base branch is outlined in dark orange.

  5. Read the information about changing the base branch and click Change base.

Tip

When you open a pull request, GitHub sets the base to the commit that branch references. If the branch is updated in the future, GitHub does not update the base branch's commit.

Further reading