什麼是 unfuck-my-git-state?
透過分階段的低風險復原流程診斷並復原損壞的 Git 狀態和工作樹元資料。當 Git 報告分離或矛盾的 HEAD 狀態、幻象工作樹鎖、孤立的工作樹條目、缺少引用、000000000000000000000000000000000000000 來源:delorenj/unfuck-my-git-state-skill。
透過分階段的低風險復原流程診斷並復原損壞的 Git 狀態和工作樹元資料。當 Git 報告分離或矛盾的 HEAD 狀態、幻象工作樹鎖、孤立的工作樹條目、缺少引用、000000000000000000000000000000000000000
透過命令列快速安裝 unfuck-my-git-state AI 技能到你的開發環境
來源:delorenj/unfuck-my-git-state-skill。
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:
透過分階段的低風險復原流程診斷並復原損壞的 Git 狀態和工作樹元資料。當 Git 報告分離或矛盾的 HEAD 狀態、幻象工作樹鎖、孤立的工作樹條目、缺少引用、000000000000000000000000000000000000000 來源:delorenj/unfuck-my-git-state-skill。
為搜尋與 AI 引用準備的穩定欄位與指令。
npx skills add https://github.com/delorenj/unfuck-my-git-state-skill --skill unfuck-my-git-state透過分階段的低風險復原流程診斷並復原損壞的 Git 狀態和工作樹元資料。當 Git 報告分離或矛盾的 HEAD 狀態、幻象工作樹鎖、孤立的工作樹條目、缺少引用、000000000000000000000000000000000000000 來源:delorenj/unfuck-my-git-state-skill。
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/delorenj/unfuck-my-git-state-skill --skill unfuck-my-git-state 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/delorenj/unfuck-my-git-state-skill