samcdavid/dotfiles/git-resolve-conflicts
Claude Code and agent skill by samcdavid/dotfiles
- community
Checking that the SKILL.md file is still in the repository.
Resolve merge, rebase, and cherry-pick conflicts by merging the intent of both sides, staging, and continuing until the operation finishes or genuinely needs you.
Install
npx vskill@latest install samcdavid/dotfiles/git-resolve-conflictsSKILL.md
The same SKILL.md was published earlier as samcdavid/dotfiles/git-resolve-conflicts.
Finish the merge, rebase, or cherry-pick in progress, keeping what both sides meant to do.
Loop until the operation finishes:
- Work out which operation is running from
git statusand.git/{rebase-merge,rebase-apply,MERGE_HEAD,CHERRY_PICK_HEAD}, and note the current commit. If nothing is in progress, say so and stop. - For each conflicted file:
- Read the whole file, not just the hunk.
- Work out what each side intended. In a rebase,
ours/HEADis upstream andtheirsis my commit, so read the marker labels rather than assuming. - Merge both sides where they compose, matching the file's style. Keep imports, contracts, and tests from both.
git addeach resolved file. Thengit diff --checkandgit diff --name-only --diff-filter=Umust both come back clean.- Continue without opening an editor:
GIT_EDITOR=true git <op> --continue.
Never run --abort, --skip, or reset --hard, and never push. Never take one side wholesale when both carry real intent. Never leave conflict markers behind.
Don't hand-merge lockfiles or generated files. Tell me which tool command regenerates them.
If unstaged or untracked changes block --continue:
- fold the ones that belong to the replay into the right commit;
- set unrelated edits aside with a targeted stash and restore them afterwards.
Stop and ask when:
- the two sides contradict, or a critical file (schema, API, migration) can't be justified from the code;
- one side deleted something the other side modified;
- Git wants
--skip, or reports an error I wouldn't expect; - the same commit conflicts the same way twice;
- the remaining-commit count stalls;
- more than 20 commits have been replayed.
Report:
- the operation and its final state;
- each file and how it was resolved;
- every place one side won, and why;
- anything you're unsure of;
- if you stopped early, the blocker and the next command to run.
Note that tests haven't been run yet.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/skills/git-resolve-conflicts/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/samcdavid/dotfiles/git-resolve-conflicts)