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

jj rebase — Move revisions to different parent(s). More information: <https://docs.jj-vcs.dev/latest/cli-referen

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandclimoveparentmorerevisionsdifferentjj rebase

Problem

How to use the jj rebase command: Move revisions to different parent(s). More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-rebase>.

Solution

jj rebase — Move revisions to different parent(s). More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-rebase>.

Move given revisions to a different parent(s):
jj rebase {{[-r|--revisions]}} {{revset}} {{[-d|--destination]}} {{revset}}


Move given revisions and all their descendants:
jj rebase {{[-s|--source]}} {{revset}} {{[-d|--destination]}} {{revset}}


Move all revisions in the branch containing given revisions:
jj rebase {{[-b|--branch]}} {{revset}} {{[-d|--destination]}} {{revset}}


Move revisions to before and/or after other revisions:
jj rebase {{[-r|--revisions]}} {{revset}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}

Code Snippets

Move given revisions to a different parent(s)

jj rebase {{[-r|--revisions]}} {{revset}} {{[-d|--destination]}} {{revset}}

Move given revisions and all their descendants

jj rebase {{[-s|--source]}} {{revset}} {{[-d|--destination]}} {{revset}}

Move all revisions in the branch containing given revisions

jj rebase {{[-b|--branch]}} {{revset}} {{[-d|--destination]}} {{revset}}

Move revisions to before and/or after other revisions

jj rebase {{[-r|--revisions]}} {{revset}} {{[-B|--insert-before]}} {{revset}} {{[-A|--insert-after]}} {{revset}}

Context

tldr-pages: common/jj rebase

Revisions (0)

No revisions yet.