Skip to main content
Frecuentemente publicamos actualizaciones de nuestra documentación. Es posible que la traducción de esta página esté en curso. Para conocer la información más actual, visita la documentación en inglés. Si existe un problema con las traducciones en esta página, por favor infórmanos.

Esta versión de GitHub Enterprise se discontinuó el 2022-06-03. No se realizarán lanzamientos de patch, ni siquiera para problemas de seguridad críticos. Para obtener un mejor desempeño, más seguridad y nuevas características, actualiza a la última versión de GitHub Enterprise. Para obtener ayuda con la actualización, contacta al soporte de GitHub Enterprise.

Changing the base branch of a pull request

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. Debajo del nombre de tu repositorio, da clic en Solicitudes de cambios. Issues tab
  2. In the "Pull Requests" list, click the pull request you'd like to modify.
  3. Next to the pull request's title, click Edit. Pull Request edit button
  4. In the base branch drop-down menu, select the base branch you'd like to compare changes against. Base branch drop-down menu
  5. Read the information about changing the base branch and click Change base. Base branch change confirmation button

Tip: When you open a pull request, GitHub Enterprise Server will set the base to the commit that branch references. If the branch is updated in the future, GitHub Enterprise Server will not update the base branch's commit.

Further reading