* Add back changes from prior to purge * Manually fix some invalid Liquid * Updoot render-content * Improve test messages to show correct output * Run el scripto * Pass the remaining test
33 lines
957 B
Markdown
33 lines
957 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
|
|
versions:
|
|
free-pro-team: '*'
|
|
---
|
|
|
|
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 %}
|
|

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

|
|
|
|
{% endwindows %}
|