1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Files
docs/content/desktop/contributing-and-collaborating-using-github-desktop/managing-commits/reverting-a-commit.md
2023-03-22 10:07:23 +00:00

20 lines
907 B
Markdown

---
title: Reverting a commit
intro: You can revert a specific commit to remove its changes from your branch.
redirect_from:
- /desktop/contributing-to-projects/reverting-a-commit
- /desktop/contributing-and-collaborating-using-github-desktop/reverting-a-commit
versions:
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 %}
{% data reusables.desktop.history-tab %}
{% data reusables.desktop.revert-commit %}
![Screenshot of a list of commits in the "History" tab. Next to a commit, in a context menu, the cursor hovers over the "Revert Changes in Commit" option.](/assets/images/help/desktop/commit-revert-mac.png)