Skip to content

CLI Changes Revert

github-actions[bot] edited this page Aug 16, 2026 · 1 revision

quinjet revert

Records a new commit that reverses one existing commit.

Usage:

quinjet revert <REVISION> [--yes] [-C <DIR>] [--json]
Name Type / values Default What it does
<REVISION> branch, tag, commit id, or revision required Commit whose changes should be reversed.
--yes flag off Performs the revert. Without it, reports the resolved revision and changes nothing.
-C, --path <DIR> directory . Repository to run in.
--json flag off Emits the result sentence in a message object.
-h, --help flag off Prints help and exits 0.

The default resolves the name and previews the operation:

$ quinjet revert HEAD~1
Would revert `HEAD~1`. Pass --yes to revert it.

With --yes, Quinjet runs git revert --no-edit <resolved revision>. Git uses its generated revert message without opening an editor. The original commit remains in history, and a new commit records its inverse.

$ quinjet revert a1b2c3d --yes
Reverted a1b2c3d

An unknown or ambiguous revision exits 3. A conflict, empty revert, hook failure, or missing Git identity exits 1 and leaves Git's normal revert state in place. Resolve or abort it with Git before starting unrelated work.

JSON success and preview responses have the same shape:

{
  "message": "Reverted a1b2c3d"
}

Examples:

quinjet revert HEAD
quinjet revert release-tag --yes
quinjet -C ../project revert a1b2c3d --yes --json

Where to go next

CLI reference

Repository
Changes
Remotes
Branch
Stash
Pull Request
Generated
Graft
Mcp
Project
Remote
Stack
Worktree

Guides

Optimization

Git Internals
Diff
Github
Rendering

Rust practices

Studies
Patterns

Clone this wiki locally