2025-07-24 22:27:13 -06:00
|
|
|
# jj squash
|
|
|
|
|
|
|
|
|
|
> Move changes from a revision into another revision.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-squash>.
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- 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]}}`
|