1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 05:35:25 +02:00
tldr/pages/common/jj-split.md

24 lines
872 B
Markdown

# jj split
> Split a revision in two.
> More information: <https://jj-vcs.github.io/jj/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]}}`