Linux command
jj-prev 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Move to the parent revision
jj prev
Move multiple steps back
jj prev [3]
Move and directly edit the parent revision
jj prev --edit
Jump to the previous conflicted ancestor
jj prev --conflict
说明
jj prev moves the working-copy commit to an ancestor revision. By default it creates a new empty working-copy revision as a child of the target ancestor. With --edit, it directly edits the ancestor revision instead. This command is a convenient shorthand for navigating backward through commit history in the Jujutsu version control system.
参数
- -e, --edit
- Edit the parent directly, instead of moving the working-copy commit. Overrides the ui.movement.edit configuration.
- -n, --no-edit
- Inverse of --edit; create a new working-copy commit on top of the destination.
- --conflict
- Jump to the previous conflicted ancestor.
FAQ
What is the jj-prev command used for?
jj prev moves the working-copy commit to an ancestor revision. By default it creates a new empty working-copy revision as a child of the target ancestor. With --edit, it directly edits the ancestor revision instead. This command is a convenient shorthand for navigating backward through commit history in the Jujutsu version control system.
How do I run a basic jj-prev example?
Run `jj prev` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e, --edit do in jj-prev?
Edit the parent directly, instead of moving the working-copy commit. Overrides the ui.movement.edit configuration.