LinuxCommandLibrary

jj-new

creates a new change in the repository

TLDR

Create new change

$ jj new
copy
New change with description
$ jj new -m "[message]"
copy
New change on specific parent
$ jj new -r [rev]
copy
New merge change
$ jj new [rev1] [rev2]
copy
Insert change before current
$ jj new --insert-before
copy

SYNOPSIS

jj new [options] [revisions...]

DESCRIPTION

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.

PARAMETERS

REVISIONS

Parent revisions (creates merge if multiple).
-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.

CAVEATS

Subcommand of jj. Current change auto-commits. Different from Git branch.

HISTORY

jj new is part of Jujutsu, central to its workflow of treating all changes as first-class revisions.

SEE ALSO

jj(1), jj-describe(1), jj-next(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community