Skip to content
Back to skills

Recover From Corrupted Git State

ASecurity

Diagnose and recover from corrupted git states (stale locks, failed rebases, pre-commit hook blocks) during bulk operations

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

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill recover-from-corrupted-git-state --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Recover From Corrupted Git State?

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

Security grade badge for Recover From Corrupted Git State
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-recover-from-corrupted-git-state/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-recover-from-corrupted-git-state)

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: recover-from-corrupted-git-state
description: Diagnose and recover from corrupted git states (stale locks, failed rebases, pre-commit hook blocks) during bulk operations
version: 1.0.0
source: auto-extracted
extracted: 2026-04-11
metadata:
  tags: ["git", "troubleshooting", "bulk-sync", "state-recovery"]
---

# Recover from Corrupted Git State

When bulk git operations (large commits, background pulls, rebases) fail or leave stale state: (1) Check for lock files and background processes (`ps aux | grep git`); (2) Detect corrupted rebase state via `rebase-merge` directory — abort with `git rebase --abort` and switch to merge; (3) If pre-commit hooks block large files, unstage oversized files and recommit selectively; (4) For untracked file conflicts during pull, move conflicting files to `/tmp`, pull, then restore; (5) Always verify final state with `git status` and divergence count (should be 0/0 after sync).

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.