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

jj abandon — Abandon a revision, rebasing descendants onto its parent(s). Abandoning a revision removes its assoc

Submitted by: @import:tldr-pages··
0
Viewed 0 times
ontocommandjj abandoncliabandonrebasingdescendantsrevision

Problem

How to use the jj abandon command: Abandon a revision, rebasing descendants onto its parent(s). Abandoning a revision removes its associated change ID. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-abandon>.

Solution

jj abandon — Abandon a revision, rebasing descendants onto its parent(s). Abandoning a revision removes its associated change ID. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-abandon>.

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}}

Code Snippets

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}}

Context

tldr-pages: common/jj abandon

Revisions (0)

No revisions yet.