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.

경고

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. 리포지토리 이름에서 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.

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