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

jj split — Split a revision in two. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-split>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
splitcommandtwocliinformationjj splitmorerevision

Problem

How to use the jj split command: Split a revision in two. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-split>.

Solution

jj split — Split a revision in two. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-split>.

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

Code Snippets

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

Context

tldr-pages: common/jj split

Revisions (0)

No revisions yet.