1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/reverting-a-commit.md
2021-06-24 10:21:07 -04:00

1.0 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Reverting a commit You can 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
fpt
*

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

{% tip %}

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.

{% endtip %}

{% mac %}

{% data reusables.desktop.history-tab %} {% data reusables.desktop.revert-commit %} The Revert option above the diff view

{% endmac %}

{% windows %}

{% data reusables.desktop.history-tab %} {% data reusables.desktop.revert-commit %} The Revert option above the diff view

{% endwindows %}