Multi Repo Stale Lock Recovery

Diagnose and recover from stale git lock files in multi-repo workspaces, especially with submodules

vamseeachanta Updated

File contents

Multi-Repo Stale Lock Recovery

When bulk operations fail across multiple repos with .git/index.lock errors, check for stale crashes from background processes (especially with submodules). Use lsof to verify no git process is actually running, then safely remove the lock file and retry. If the lock reappears immediately after cleanup, a background process may still be running — wait briefly and monitor with ps before retrying. In submodule-heavy workspaces, lock files in one repo can reference another's submodule path.

vamseeachanta/workspace-hub/tree/main/.agents/skills/workspace-hub/learned/multi-repo-stale-lock-recovery commit 9f44dcf7c6

Frequently asked questions

npx skillmds@latest add vamseeachanta/multi-repo-stale-lock-recovery