---
name: "hg-abort"
section: "1"
platform: "linux"
package: "mercurial"
version: "7.2.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hg-abort"
---

# hg-abort(1)

abort an unfinished operation (EXPERIMENTAL)

## NAME

hg abort - abort an unfinished operation (EXPERIMENTAL)

## SYNOPSIS

```
hg abort
```

## DESCRIPTION

Aborts a multistep operation like graft, histedit, rebase, merge, and unshelve if they are in an unfinished state.

use --dry-run/-n to dry run the command.

## OPTIONS

- **-n, --dry-run**

  do not perform actions, just print output
