← 返回命令列表

Linux command

jj-describe 命令

文本

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

常用示例

Describe current change

jj describe -m "[message]"

Describe specific revision

jj describe -r [rev] -m "[message]"

Open editor for description

jj describe

Clear description

jj describe -m ""

Describe with stdin

echo "[message]" | jj describe --stdin

说明

jj describe updates the description of a change. It sets or modifies the commit message equivalent. The command opens an editor by default or accepts inline messages. Descriptions can be updated at any time.

参数

-m, --message _MESSAGE_
Set the description without opening an editor. May be passed multiple times.
-r _REV_
Revision(s) to describe. Defaults to `@` (the current change).
--stdin
Read the description from standard input.
--edit
Force opening the editor even when a message is supplied.
--no-edit
Don't open the editor; keep the current description when no other input is provided.
--reset-author
Reset the change's author to the configured user (newer jj versions).
--author _NAME_EMAIL_
Override the author (newer jj versions).
--help
Display help information.

FAQ

What is the jj-describe command used for?

jj describe updates the description of a change. It sets or modifies the commit message equivalent. The command opens an editor by default or accepts inline messages. Descriptions can be updated at any time.

How do I run a basic jj-describe example?

Run `jj describe -m "[message]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -m, --message _MESSAGE_ do in jj-describe?

Set the description without opening an editor. May be passed multiple times.