Resolve Merge Conflicts
- Find all files with conflicts:
git diff --name-only --diff-filter=U
grep -rl "<<<<<<< " . --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" --include="*.py" --include="*.go" 2>/dev/null
- For each conflicted file:
- Read the full file
- For each conflict block (
<<<<<<< / ======= / >>>>>>>) explain: - What HEAD (ours) is trying to do
- What theirs is trying to do
- Why there's a conflict
- Propose the resolution for each conflict. Explain the reasoning.
- Ask for confirmation, then apply.
- After all conflicts resolved:
git add .
Remind the user to run tests before committing.