jj-abandon
abandon revisions in Jujutsu
TLDR
SYNOPSIS
jj abandon [options] [revsets...]
DESCRIPTION
jj abandon marks revisions as abandoned in Jujutsu. Abandoned commits are hidden from default log output, and any descendants are normally rebased onto the abandoned commit's parent so the visible history remains linear. The change IDs survive until garbage collection, so abandoned work can still be recovered via `jj op log` and `jj op restore`.If the working-copy commit is abandoned, Jujutsu automatically creates a new empty working-copy commit on the parent so the workspace is never left without a current change.
PARAMETERS
revsets
One or more revsets to abandon. Defaults to the working-copy commit (`@`) when omitted.--restore-descendants
Do not rewrite descendants of the abandoned commits. Their parent pointers stay the same and their contents are preserved.--retain-bookmarks
Move bookmarks pointing at abandoned commits to the parent revision instead of deleting them.
CAVEATS
Abandoning does not delete commits immediately. They remain reachable via the operation log until garbage collected. With --restore-descendants, descendants keep their original tree but their parent links are not updated to skip the abandoned commit, which can produce duplicated content.
SEE ALSO
jj(1), jj-squash(1), jj-git-push(1)
