Abandon Operation

The abandon operation allows you to remove unwanted revisions from your repository history. To use this feature, press a to run jj abandon on the currently highlighted or selected revisions. You can select multiple revisions by pressing space to check them.

This operation is useful for cleaning up your history and discarding changes that are no longer needed. After abandoning revisions, the log graph will update to reflect the new state of your repository.

Abandon is typically used alongside other revision operations such as rebase, squash, and absorb, which help you manage and organize your commit history.

image