·unfuck-my-git-state
</>

unfuck-my-git-state

Diagnose and recover broken Git state and worktree metadata with a staged, low-risk recovery flow. Use when Git reports detached or contradictory HEAD state, phantom worktree locks, orphaned worktree entries, missing refs, 0000000000000000000000000000000000000000 hashes, or branch operations fail with errors like already checked out, unknown revision, not a valid object name, or cannot lock ref.

4Installs·0Trend·@delorenj

Installation

$npx skills add https://github.com/delorenj/unfuck-my-git-state-skill --skill unfuck-my-git-state

How to Install unfuck-my-git-state

Quickly install unfuck-my-git-state AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/delorenj/unfuck-my-git-state-skill --skill unfuck-my-git-state
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: delorenj/unfuck-my-git-state-skill.

SKILL.md

View raw

If stale entries remain, back up .git/ and remove the specific stale folder under .git/worktrees/ , then rerun prune.

Find the worktree using that branch, switch that worktree to another branch or detach HEAD there, then retry the branch operation in the main repo.

If branch context is unknown, create a rescue branch from current commit:

Diagnose and recover broken Git state and worktree metadata with a staged, low-risk recovery flow. Use when Git reports detached or contradictory HEAD state, phantom worktree locks, orphaned worktree entries, missing refs, 0000000000000000000000000000000000000000 hashes, or branch operations fail with errors like already checked out, unknown revision, not a valid object name, or cannot lock ref. Source: delorenj/unfuck-my-git-state-skill.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/delorenj/unfuck-my-git-state-skill --skill unfuck-my-git-state
Category
</>Dev Tools
Verified
First Seen
2026-02-25
Updated
2026-03-11

Browse more skills from delorenj/unfuck-my-git-state-skill

Quick answers

What is unfuck-my-git-state?

Diagnose and recover broken Git state and worktree metadata with a staged, low-risk recovery flow. Use when Git reports detached or contradictory HEAD state, phantom worktree locks, orphaned worktree entries, missing refs, 0000000000000000000000000000000000000000 hashes, or branch operations fail with errors like already checked out, unknown revision, not a valid object name, or cannot lock ref. Source: delorenj/unfuck-my-git-state-skill.

How do I install unfuck-my-git-state?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/delorenj/unfuck-my-git-state-skill --skill unfuck-my-git-state Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/delorenj/unfuck-my-git-state-skill

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-25

Related Skills

None