← 返回命令列表

Linux command

jj-new 命令

文本

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

常用示例

Create new change

jj new

New change with description

jj new -m "[message]"

New change on specific parent

jj new -r [rev]

New merge change

jj new [rev1] [rev2]

Insert change before current

jj new --insert-before

说明

jj new creates a new change in the repository. It starts a fresh working copy state on top of specified parents. The command enables branching and merge point creation. Multiple parents create a merge change.

参数

-m _MESSAGE_
Description for new change.
-r _REV_
Parent revision.
--insert-before
Insert before current change.
--insert-after
Insert after specified.
--help
Display help information.

FAQ

What is the jj-new command used for?

jj new creates a new change in the repository. It starts a fresh working copy state on top of specified parents. The command enables branching and merge point creation. Multiple parents create a merge change.

How do I run a basic jj-new example?

Run `jj new` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -m _MESSAGE_ do in jj-new?

Description for new change.