Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.11 KB

reverting-a-commit-in-github-desktop.md

File metadata and controls

25 lines (21 loc) · 1.11 KB
title shortTitle intro redirect_from versions
Reverting a commit in GitHub Desktop
Reverting a commit
You can use {% data variables.product.prodname_desktop %} to revert a specific commit to remove its changes from your branch.
/desktop/contributing-to-projects/reverting-a-commit
/desktop/contributing-and-collaborating-using-github-desktop/reverting-a-commit
/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/reverting-a-commit
/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/reverting-a-commit-in-github-desktop
fpt ghec ghes
*
*
*

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.

{% data reusables.desktop.history-tab %} {% data reusables.desktop.revert-commit %}

Further reading