LinuxCommandLibrary

jj-split

divides a change into multiple changes

TLDR

Split current change

$ jj split
copy
Split specific revision
$ jj split -r [rev]
copy
Split specific files
$ jj split [file1] [file2]
copy
Interactive split
$ jj split -i
copy

SYNOPSIS

jj split [options] [paths...]

DESCRIPTION

jj split divides a change into multiple changes. It separates modifications into logical units.
The command supports interactive hunk selection. Split changes share the original parent.

PARAMETERS

PATHS

Files to split into first change.
-r REV
Revision to split.
-i, --interactive
Interactive hunk selection.
--help
Display help information.

CAVEATS

Subcommand of jj. Creates two changes from one. Interactive mode for fine control.

HISTORY

jj split is part of Jujutsu, enabling flexible change management and history rewriting.

SEE ALSO

jj(1), jj-squash(1), jj-describe(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community