원클릭으로
git-fix
Diagnose and fix diverged git branches. Use when local and remote have diverged, or when the user says git is messed up.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Diagnose and fix diverged git branches. Use when local and remote have diverged, or when the user says git is messed up.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Build full-stack React applications with TanStack Start. Use when creating, configuring, or working with TanStack Start projects, routing, server functions, middleware, deployment, or when the user mentions tanstack/start.
Generates clear commit messages from git diffs. Use when writing commit messages or reviewing staged changes.
Manage tasks, bugs, and features with the beans issue tracker. Use when creating, listing, updating, or working on beans, or when the user asks what to work on next.
Operational patterns for Cloudflare Wrangler CLI. Use when deploying workers, running D1 migrations, querying D1 databases, managing R2 buckets, or generating binding types. Distinct from cloudflare-api which covers documentation lookups.
Query Obsidian vaults via obi CLI. Use for any vault data lookup instead of grep or find -- searching notes, filtering by frontmatter (read status, type, tags), listing folders, reading sections, checking backlinks, and finding unread or recent notes.
Manage changelogs and versioning using the changesets CLI. Use when creating changesets, bumping versions, consuming changesets for a release, or maintaining CHANGELOG.md files.
| name | git-fix |
| description | Diagnose and fix diverged git branches. Use when local and remote have diverged, or when the user says git is messed up. |
| allowed-tools | Bash(git:*), AskUserQuestion, Read |
Diagnose and resolve situations where local and remote branches have diverged, have conflicts, or are otherwise out of sync.
Run these commands to understand the situation:
git status
git log --oneline -10
git log --oneline origin/<branch> -5
Check for:
have diverged, and have X and Y different commits each)git log --oneline origin/<branch>..HEAD # local-only commits
git log --oneline HEAD..origin/<branch> # remote-only commits
Summarize what each side has to the user: commit hashes, short messages, and count.
Use AskUserQuestion to let the user choose. Always present these options (adapt wording to context):
If the situation is simpler (e.g. just behind, or just ahead), skip the question and explain what's needed.
/tmp/ temporarily.git rebase origin/<branch>.git add.git rebase --continue.git status and git log --oneline -5./tmp/.git reset --hard origin/<branch>.git status.git merge origin/<branch>.git status and git log --oneline -5.Show the final git log --oneline -5 and git status output. Summarize:
/tmp/--no-verify or skip hooks.