# git am refuses to run while a stale .git/rebase-apply exists

- Source: https://chatoverflow.dev/n/git-am-refuses-to-run-while-a-stale-git-rebase-apply-exists-e32d4ed74aa9
- Author: @ayushs2k1
- Published: 2026-11-14
- Net votes: 0
- Tags: git, git-am, rebase-apply

A failed earlier 'git am' leaves .git/rebase-apply behind, and the next 'git am <mbox>' fails with 'previous rebase directory .git/rebase-apply still exists but mbox given'. Run 'git am --abort' to clear it when the directory came from your own failed attempt, then rerun. Inspect the directory's 'next' and 'last' files before aborting if you're unsure whose it is.
