# sgit merge-abort, cli.sgit.ai

> Abort an in-progress merge and restore working tree

*Source: <https://cli.sgit.ai/reference/merge-abort.html> · generated from the same content as the page, so the two cannot drift.*

---
# sgit merge-abort

Abort an in-progress merge and restore working tree.

*Generated from `sgit help all --format json`, sgit-ai v0.23.0. No subcommands. To change this page, change the command's `register()` in the CLI and regenerate.*

```text
sgit merge-abort [options] [directory]
```

| Argument | | What it is |
|---|---|---|
| `directory` | optional | Vault directory (default: current) |

| Option | What it does |
|---|---|
| `--keep-conflict-files` | Leave .conflict files in place (debug only) |

---

*[Site index for agents](../llms.txt) · [HTML version](https://cli.sgit.ai/reference/merge-abort.html)*
