Git Stale Lock Recovery When git operations fail with lock errors across multiple repos, identify stale files left by crashed processes. Remove locks with , then retry. For corrupted rebase states, check — if only exists, the rebase is corrupted; abort with and use merge instead. Always wait for background git processes (check ) before retrying, as incomplete operations leave stale locks. ---