gg continue / gg abort
Control paused operations (typically rebases with conflicts).
gg continue
gg abort
Use gg continue after resolving conflicts and staging files.
Use gg abort when you want to stop and roll back the in-progress operation.
When a recorded gg operation stops on a rebase conflict, gg continue
finalizes that original operation in the undo log after the rebase completes.
That means the completed operation can still be reversed with gg undo.
gg records which operation owns a paused rebase in the worktree’s git
directory (gg/interrupted-rebase-operation.json; each linked worktree has its
own).
If you end the rebase with plain Git instead (git rebase --abort), the marker
is left behind with no rebase to belong to. That marker is stale: gg ls,
gg continue, gg abort, gg sync and gg land clear it and say so on
stderr, for example:
Note: Cleared a stale interrupted-rebase marker for operation op_...: no rebase is in progress in this worktree.
gg continue and gg abort then report No rebase in progress, as there is
nothing left to continue or abort.
While a rebase is in progress, the marker must match it. If it is malformed,
cites a missing or already-finished operation, cites a command that never
pauses on a rebase, or no longer matches the rebase in progress, gg continue
and gg ls --json refuse to run and leave both the marker and the rebase
untouched, so nothing finalizes the wrong operation. Then either:
gg abortto end the rebase; the marker is cleared with it; orgg reconcile --dry-runto see the problem, thengg reconcile --discard-pendingto drop the marker and keep the rebase, andgg continueto finish it. The operation that started the rebase is then not finalized in the undo log.