resolve-git-conflicts

Installation
SKILL.md

Resolve Git Conflicts

Overview

Resolve Git conflicts end-to-end in the CLI. Analyze base/ours/theirs, decide which changes to keep or combine, verify the code works, then stop for human review before any commit or continue.

Quick Start

  1. git status -sb
  2. git diff --name-only --diff-filter=U
  3. For each file, inspect base/ours/theirs: git show :1:PATH, git show :2:PATH, git show :3:PATH
  4. Edit files to a clean, marker-free result and run git add PATH
  5. Run the repo build/tests if available
  6. Stop for review. Do not run git commit, git merge --continue, git rebase --continue, or git cherry-pick --continue

Workflow

  1. Understand why the conflict happened. Use git status -sb and git log --oneline --decorate -n 20 to identify the operation and the competing commits.
Related skills

More from tenfyzhong/skills-hub

Installs
11
First Seen
Feb 10, 2026