Skip to main content

Reverting a commit in GitHub Desktop

You can use GitHub Desktop to revert a specific commit to remove its changes from your branch.

When you revert to a previous commit, the revert is also a commit. The original commit also remains in the repository's history.

Tip: When you revert multiple commits, it's best to revert in order from newest to oldest. If you revert commits in a different order, you may see merge conflicts.

  1. En la barra lateral de la izquierda, haz clic en Historial.

    Captura de pantalla de la pestaña "Historial" en la barra lateral. Encima de una lista de confirmaciones, el botón de pestaña, con la etiqueta "Historial", está resaltado con un contorno naranja.

  2. Haga clic con el botón derecho en la confirmación que quiera revertir y haga clic en Revertir cambios en la confirmación.

    Captura de pantalla de una lista de confirmaciones en la pestaña "Historial". Junto a una confirmación, en un menú contextual, el cursor se mantiene sobre la opción "Revertir cambios en la confirmación".