---
title: "af revert"
description: "Undo a landing on main"
---

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

# af revert

<!-- Generated by tools/gen-reference.mjs from `af revert --help`. Change the help text in crates/atoll-forge-cli/src/main.rs, then run `npm run gen:reference`. -->

Creates a new open change on main that reverses the landing's edits. Where main has since changed the same content, the new change contains conflicts for you to resolve before you submit it.

## Usage

```text
af revert [OPTIONS] --revision <REVISION>
```

## Options

- `-r, --revision <REVISION>`

  Revset selecting the landing to undo

- `-m, --message <MESSAGE>`

  Description of the new change; defaults to one that names the reverted landing

- `--change <CHANGE>`

  Change ID for the new change, as 32 letters k to z; a new one if omitted

  Choosing the ID makes retries safe: retrying with the same ID never creates a second change.

## Global options

Every `af` command also takes the [global options](https://docs.forge.workreef.dev/reference/af/#global-options).

## Examples

```sh
af revert -r main -m "Revert the broken parser"
```

Source: https://docs.forge.workreef.dev/reference/af/revert/index.mdx
