# Revert local editor changes

Copy as Markdown[View as Markdown](/docs/editor/how-to/revert-local-changes.md)

***

Use revert when you want to discard local edits before committing them.

## Open the Changes page[​](#open-the-changes-page "Direct link to Open the Changes page")

Choose **Changes** from the editor navigation.

The editor shows modified, added, deleted, renamed, and untracked files when Git change tracking is available.

## Revert one file[​](#revert-one-file "Direct link to Revert one file")

Open a changed file and choose **Revert**.

The editor asks for confirmation before it discards the local file change.

![Changes page with revert actions for local edits](/assets/images/change-diff-794f35597f09768d425795ce2e7e1c35.png)

## Revert a resource group[​](#revert-a-resource-group "Direct link to Revert a resource group")

If a resource has multiple changed files, you can revert the group from the Changes page.

For example, reverting a message resource might discard changes to both:

* `index.mdx`
* `schema.json`

## What revert does[​](#what-revert-does "Direct link to What revert does")

Revert restores modified and deleted files from Git.

Untracked files are removed from disk.

Revert cannot be undone by the editor

Only revert files when you are sure you do not need the local edits. If you are unsure, inspect the diff first or commit the work to a temporary branch.
