> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Revert changes

export const maia = "Maia";

export const designer = "Designer";

In {designer}, a [commit](/docs/guides/git-commit) represents a snapshot of your work in your current branch. When you revert to an earlier commit, all the changes that have been made to your branch after the selected commit will be undone. This is a non-destructive action—instead of deleting the changes made after the selected commit, {maia} creates additional commits that undo these changes. This means that your commit history stays intact, and you can track all the changes made to your branch.

You cannot revert to a commit that is earlier than a merge commit, because this will cause conflicts. If you want to revert your branch to an earlier commit that was made before a merge commit, you must do this using your Git provider.

<Note>
  You cannot revert to an earlier commit if there are any uncommitted changes in your branch. You must commit or undo these changes before reverting.
</Note>

***

## How to revert to an earlier commit

1. Click the branch menu on the project bar.
2. Click **View commit history** in the drop-down menu. A panel will open containing a list of commits made in your branch.
3. Hover over the commit that you want to revert to, and click the three dots **...**.
4. Click **Revert to this commit**.
5. In the confirmation dialog, click **Revert**. Otherwise, click **Cancel** to return to the list of commits without reverting.
