Websites, apps & code / Coding & debugging
Resolve a Git merge conflict
You and a teammate edited the same file and a merge now shows a mess of <<<<<<< markers.
1Fill in your details
Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).
3Copy the prompt
I hit a conflict while merging Git branches. Please help me understand and resolve it. Conflict: <<<<<<< HEAD price = 28.00 ======= price = 30.50 >>>>>>> feature/new-price What each side meant: I set the price to RM28 and my teammate wanted RM30.50 and added a discount field My tool: Give git commands step by step and say what I should see after each. Please: 1. First explain what <<<<<<<, ======= and >>>>>>> mean. 2. Say what each side changed, which changes can both be kept and which need one side chosen. 3. Ask me about anything I must decide, such as what the price should actually be, instead of deciding for me. 4. Show the resolved result and the steps to finish the merge. 5. Teach me to check the program still runs before and after, and how to abort the merge and start over. Avoid approaches that throw away someone else's work, such as a forced overwrite. [Make it sound human] - Explain in plain words; no pleasantry openers or empty summaries. - Only necessary, short, practical code comments; the simplest working approach, no over-engineering. - Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock". [Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.
Paste it into ChatGPT, Gemini, Claude or Meta AI.
Test result
AI tools that suit this
- Claude Suggested tool Free plan
Strong at long documents, editing and code
- ChatGPT Suggested tool Free plan
The most widely used AI chat, for writing, questions and images
- Cursor Suggested tool Free plan
AI code editor
Recommendations only, not sponsored. Check each site for what the free plan includes.
This site is made by FullMark Tech
Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.