commands.sh

jj split

all

Split a revision in two.

More info →

Options (5)

-r, --revisionboolean

Split the given revision into two interactively, putting the second revision on top of it

Example: jj split {{[-r|--revision]}} {{revision}}
-d, --destinationboolean

Split the given revision, putting the second revision on top of given destination(s)

Example: jj split {{[-r|--revision]}} {{revision}} {{[-d|--destination]}} {{revset}}
-B, --insert-beforeboolean

Split the given revision, putting the second revision before and/or after other revision(s)

Example: jj split {{[-r|--revision]}} {{revision}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}
-A, --insert-afterboolean

Split the given revision, putting the second revision before and/or after other revision(s)

Example: jj split {{[-r|--revision]}} {{revision}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}
-p, --parallelboolean

Split the given revision into two parallel revisions

Example: jj split {{[-r|--revision]}} {{revision}} {{[-p|--parallel]}}

Examples (5)

Split the given revision into two interactively, putting the second revision on top of it

jj split [-r|--revision] revision

Split out matching files from the given revision

jj split [-r|--revision] revision fileset

Split the given revision, putting the second revision on top of given destination(s)

jj split [-r|--revision] revision [-d|--destination] revset

Split the given revision, putting the second revision before and/or after other revision(s)

jj split [-r|--revision] revision [-B|--insert-before] revset [-A|--insert-after] revset

Split the given revision into two parallel revisions

jj split [-r|--revision] revision [-p|--parallel]
made by @shridhargupta | data from tldr-pages