2025-07-24 22:27:13 -06:00
|
|
|
# jj abandon
|
|
|
|
|
|
|
|
|
|
> Abandon a revision, rebasing descendants onto its parent(s).
|
|
|
|
|
> Abandoning a revision removes its associated change ID.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-abandon>.
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Abandon revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.):
|
|
|
|
|
|
|
|
|
|
`jj abandon {{revsets}}`
|
|
|
|
|
|
|
|
|
|
- Abandon revisions, without deleting their bookmarks and moving them to the parent revisions instead:
|
|
|
|
|
|
|
|
|
|
`jj abandon --retain-bookmarks {{revsets}}`
|
|
|
|
|
|
|
|
|
|
- Abandon revisions, without modifying the contents of their children:
|
|
|
|
|
|
|
|
|
|
`jj abandon --restore-descendants {{revsets}}`
|