1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 07:55:32 +02:00
tldr/pages/common/jj-squash.md

20 lines
538 B
Markdown

# jj squash
> Move changes from a revision into another revision.
> More information: <https://jj-vcs.github.io/jj/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]}}`