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

# revert

> Revert the changes made in a commit

```bash theme={null}
dv revert <revert_ref_id> [--conflict_resolution <strategy>] [--nowait]
```

The `<revert_ref_id>` is the id of the commit you want to revert the changes to. This will create a new commit with the reverted changes.

`[--conflict_resolution <strategy>]` sets how conflicts are handled:

* `manual` — resolve conflicts manually (default)
* `keep-current` — keep the current workspace state
* `accept-incoming` — accept the reverted state

`[--nowait]` returns immediately without waiting for the reverted files to finish syncing to your local workspace. By default, the command waits until the sync is done.
