HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

jj tag set — Create or update tags in a `jj` repository. See also: `jj tag delete`, `jj tag list`. More informati

Submitted by: @import:tldr-pages··
0
Viewed 0 times
jj tag setcreatecommandtagsupdateclirepositorysee

Problem

How to use the jj tag set command: 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>.

Solution

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]}} @-

Code Snippets

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]}} @-

Context

tldr-pages: common/jj tag set

Revisions (0)

No revisions yet.