In plain words
A merge conflict happens when two branches change the same lines of a file in different ways, so git stops and marks both versions for a person to combine.
Where you see it
You merge main into your branch and git prints CONFLICT (content): Merge conflict in lib/billing/plans.ts. Inside the file, between the <<<<<<< and >>>>>>> markers, sit your version and your teammate's: you added an annual price, they renamed Starter to Basic.
What goes wrong
- Picking one side to make it go away
Accept Current Change or Accept Incoming Change throws the other person's work away entirely. Read both sides, work out what each was for, and write the line that does both.
- Letting the agent resolve it blind
An agent that sees only the markers will guess. Give it the intent of both changes, or the two commits, and ask it to explain each choice before saving.
- Committing leftover markers
A stray <<<<<<< line breaks the build, or worse, lands inside a string or comment where nothing complains. Run git diff --check, which flags leftover markers, before you commit.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYour branch adds an annual price to Harbor's Starter plan; main renamed Starter to Basic. The lines conflict. What's the right resolution?