A worked example, rendered from real sample data. Sign in to run the tool on your own input.
src/auth.ts
ours{
"file": "src/auth.ts",
"conflictMarkers": 3,
"strategy": "Keep our changes",
"steps": [
{
"step": 1,
"action": "Identify conflict markers (<<<<<<, ======, >>>>>>)",
"status": "Automatic"
},
{
"step": 2,
"action": "Resolve using ours strategy",
"status": "Ready"
},
{
"step": 3,
"action": "Remove conflict markers",
"status": "Automatic"
},
{
"step": 4,
"action": "Run tests to verify resolution",
"status": "Recommended"
}
],
"resolved": {
"content": "// Resolved using ours strategy\nfunction merged() {\n // Content from ours branch\n return true;\n}"
},
"nextSteps": [
"git add src/auth.ts",
"git commit -m 'Resolve merge conflict'",
"git push origin"
]
}
Simulate and guide through git merge conflict resolution strategies. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.