Repository navigation
CLI Changes Revert
github-actions[bot] edited this page Aug 16, 2026
·
1 revision
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 a1b2c3dAn 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-
quinjet cherry-pickfor applying an existing commit -
quinjet logfor revisions to name - Changing a repository, the rest of this group
Generated from docs/, edit the docs in the repo, not the wiki.
CLI reference
Pull Request
- View
- Commits
- Files
- Diff
- Conversation
- Checks
- Logs
- Open
- Merge
- Admin Merge
- Auto Merge
- Disable Auto Merge
- Dequeue
- Ready
- Draft
- Review
- Reviews
- Comment
- Edit Last Comment
- Delete Last Comment
- Edit
- Update Branch
- Lock
- Unlock
- Subscribe
- Unsubscribe
- Allow Maintainer Edits
- Disallow Maintainer Edits
- Revert
- Close
- Reopen
Guides
Optimization
Rust practices