Skip to content
Back to skills

Git Stale Lock Recovery

ASecurity

Diagnose and recover from git stale lock files and corrupted rebase states in multi-repo workflows

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
businessdebugginggit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill git-stale-lock-recovery --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Stale Lock Recovery?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Stale Lock Recovery
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-git-stale-lock-recovery/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-git-stale-lock-recovery)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-stale-lock-recovery
description: Diagnose and recover from git stale lock files and corrupted rebase states in multi-repo workflows
version: 1.0.0
source: auto-extracted
extracted: 2026-04-11
metadata:
  tags: ["git", "debugging", "repo-sync", "lock-recovery"]
---

# Git Stale Lock Recovery

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.