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

jj new — Create a new empty change. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-new>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandjj newnewemptyclichangemore

Problem

How to use the jj new command: Create a new empty change. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-new>.

Solution

jj new — Create a new empty change. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-new>.

Create a new empty change on top of current revision:
jj new


Create a new empty change on top of specific revision:
jj new {{revision}}


Create a new merge change on top of multiple revisions:
jj new {{revset1 revset2 ...}}


Create a new empty change before and after specified revisions:
jj new {{[-B|--insert-before]}} {{revsets}} {{[-A|--insert-after]}} {{revsets}}

Code Snippets

Create a new empty change on top of current revision

jj new

Create a new empty change on top of specific revision

jj new {{revision}}

Create a new merge change on top of multiple revisions

jj new {{revset1 revset2 ...}}

Create a new empty change before and after specified revisions

jj new {{[-B|--insert-before]}} {{revsets}} {{[-A|--insert-after]}} {{revsets}}

Context

tldr-pages: common/jj new

Revisions (0)

No revisions yet.