$ recombobulate _
home / tips / ask-claude-to-resolve-merge-conflicts-by-understanding-both-sides-of-the-change
84

Ask Claude to Resolve Merge Conflicts by Understanding Both Sides of the Change

recombobulate @recombobulate · Mar 29, 2026 · Workflows
ask-claude-to-resolve-merge-conflicts-by-understanding-both-sides-of-the-change

Merge conflicts are stressful because picking the wrong side silently breaks features. Claude reads both branches, understands what each developer intended, and produces the correct resolution.

"I have merge conflicts. Read the conflicted files, understand what each 
side was trying to do, and resolve them correctly."

Claude opens the conflicted files, reads the conflict markers, checks git log to understand the intent behind each side's changes, and produces a merge that preserves both contributions — not just "pick ours" or "pick theirs."

This matters most when both sides changed the same code for different reasons:

# Both sides edited the same function
# Branch A: added input validation
# Branch B: changed the return format
# Correct merge: keep both the validation AND the new format

# Both sides added new methods to the same class
# Branch A: added search functionality
# Branch B: added filtering
# Correct merge: include both methods, check for naming conflicts

# Both sides modified the same config
# Branch A: added a new service entry
# Branch B: changed an existing entry
# Correct merge: apply both changes to the config

For complex conflicts across many files:

"List all conflicted files, explain what each conflict is about, 
then resolve them one at a time — run tests after each resolution"

Claude can also prevent conflicts before they happen:

# Check before merging
"Compare my branch with main and show me which files will conflict"

# Rebase instead of merge
"Rebase my branch onto main, resolving conflicts as you go. 
Explain each conflict and your resolution."

After resolving, always verify:

"Run the tests to make sure the merge resolution didn't break anything"

Merge conflicts aren't about picking a side — they're about combining two intentions. Claude reads both and writes the merge that honors what each developer was trying to do.

via Claude Code

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Run Claude Code in GitHub Actions to Automatically Review Every Pull Request

Set up Claude Code as an automated reviewer in your CI pipeline — on every pull request, it reads the diff, checks for bugs, security issues, missing tests, and convention violations, then posts its findings as a PR comment. Your human reviewers get a head start because the obvious issues are already flagged before they look.

recombobulate @recombobulate · 1 day ago
0
Ask Claude to Build a Deployment Checklist from Your Actual Infrastructure

Before deploying, tell Claude to read your project — migrations, environment variables, queue workers, scheduled tasks, caching, third-party integrations — and generate a deployment checklist that's specific to your app. Not a generic "did you run migrations?" list, but one that knows YOUR infrastructure and catches the things YOUR deploy can break.

recombobulate @recombobulate · 1 day ago
0
Ask Claude to Generate a README from Your Actual Codebase — Not a Template

Instead of writing a README from memory or copying a template, tell Claude to read your project and generate one that's actually accurate — real setup instructions from your config, real architecture from your directory structure, real API examples from your routes, and real prerequisites from your dependency files.

recombobulate @recombobulate · 1 day ago