Files
Emmanuel Ferdman 437570579c jj-tag*: add page (#20730)
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2026-01-17 16:13:22 +02:00

779 B

jj tag set

Create or update tags in a jj repository. See also: jj tag delete, jj tag list. More information: https://docs.jj-vcs.dev/latest/cli-reference/#jj-tag-set.

  • Create a tag pointing to the current working copy revision:

jj tag {{[s|set]}} {{tag_name}}

  • Create a tag pointing to a specific revision:

jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}}

  • Create multiple tags pointing to the same revision:

jj tag {{[s|set]}} {{tag1 tag2 ...}} {{[-r|--revision]}} {{revision}}

  • Move an existing tag to a different revision:

jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} {{revision}} --allow-move

  • Create a tag pointing to the parent of the current revision:

jj tag {{[s|set]}} {{tag_name}} {{[-r|--revision]}} @-