BestPromptFinder
Home › Coding › Resolve a Git Merge Conflict Step by Step

Resolve a Git Merge Conflict Step by Step

Coding · ChatGPT, Claude, Gemini · text
85AI Quality /100
95AI Usefulness est. /100
83Eval Confidence /100
No votes yetCommunity results

Quality, usefulness and confidence are AI evaluations out of 100 — not user ratings. Community results come from visitors' "worked / didn't work" votes below. How scoring works →

The prompt

Help me resolve a Git merge conflict safely, without losing anyone's work. What I was doing: [merge / rebase / pull], branches: [mine and theirs] Output of git status: [paste] The conflicted section(s): [paste the parts between >>>>>>] What each side was trying to do: [if known] Do this: 1. Explain what the conflict markers mean in my paste: which part is mine and which is theirs. 2. For each conflict, suggest the combined version that keeps both intentions, and explain why. If the intentions clash, ask me which wins. 3. Give the exact commands to mark files as resolved and finish the merge or rebase. 4. How to check the result: build, run tests, review the diff. 5. How to undo safely if it goes wrong (abort the merge or rebase, or use reflog). Never suggest force-pushing to a shared branch without warning me first.
Find similar in the app →
Did this prompt work for you?

Why this prompt

Source

Created by BestPromptFinder — editorial prompt, not user-generated. See our content & source policy.

Related Coding prompts

Python: Download a CSV From a URL
Quality 94 · GPT-5.6
Public-Market and Competitor Data Collection Agent
Quality 92 · GPT-5.6
Plain-English to SQL Query Writer
Quality 91 · GPT-5.6
PRD to MVP Technical Plan
Quality 90 · Claude Code
Third-Party API Integration
Quality 90 · Claude Code
Database Schema and Migration
Quality 90 · Claude Code