Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

abort

Cancel a paused loom operation and restore the repository to its original state.

Usage

git loom abort

When to Use It

When a loom operation is paused due to a conflict and you decide you don’t want to complete it, loom abort cancels the operation and rolls back all changes made so far:

git loom commit -b feature-auth -m "add auth" zz
# ! Conflicts detected...

git loom abort
# ✓ Aborted `loom commit` and restored original state

What It Does

  1. Loads the saved state from .git/loom/state.json
  2. Aborts the active rebase (if one is in progress)
  3. Applies rollback:
    • Hard-resets HEAD to the pre-operation state
    • Restores all branch refs to their pre-operation positions
    • Deletes any branches that were created during the operation
    • Re-applies pre-existing staged changes (if any were saved aside)
    • Re-applies working-tree changes (if any were saved)
  4. Deletes the state file
  5. Reports success

Special case: commit

After aborting a commit, the committed content is returned to the working tree as unstaged changes (via git reset --mixed) rather than being discarded. Your work is preserved; the commit is simply undone.

Error: No Operation in Progress

git loom abort
# error: No loom operation is in progress

See Also

  • continue — resume instead of cancelling