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

jj squash — Move changes from a revision into another revision. More information: <https://docs.jj-vcs.dev/lates

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandjj squashfromclimoveintochangesrevision

Problem

How to use the jj squash command: Move changes from a revision into another revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-squash>.

Solution

jj squash — Move changes from a revision into another revision. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-squash>.

Move all changes from current revision to its parent:
jj squash


Move all changes from given revision to its parent:
jj squash {{[-r|--revision]}} {{revset}}


Move all changes from given revision(s) to given other revision:
jj squash {{[-f|--from]}} {{revsets}} {{[-t|--into]}} {{revset}}


Interactively choose which parts to squash:
jj squash {{[-i|--interactive]}}

Code Snippets

Move all changes from current revision to its parent

jj squash

Move all changes from given revision to its parent

jj squash {{[-r|--revision]}} {{revset}}

Move all changes from given revision(s) to given other revision

jj squash {{[-f|--from]}} {{revsets}} {{[-t|--into]}} {{revset}}

Interactively choose which parts to squash

jj squash {{[-i|--interactive]}}

Context

tldr-pages: common/jj squash

Revisions (0)

No revisions yet.