← 返回命令列表

Linux command

jj-revert 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Revert changes from revision

jj revert -r [revision]

Revert multiple revisions

jj revert -r [rev1] -r [rev2]

说明

jj revert creates a new commit that undoes the changes from specified revisions. The original commits remain in history. Unlike restore, revert creates new commits to reverse changes.

参数

-r, --revision _rev_
Revision to revert.

FAQ

What is the jj-revert command used for?

jj revert creates a new commit that undoes the changes from specified revisions. The original commits remain in history. Unlike restore, revert creates new commits to reverse changes.

How do I run a basic jj-revert example?

Run `jj revert -r [revision]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -r, --revision _rev_ do in jj-revert?

Revision to revert.