Git
Understand a Git conflict between two agents
Two tickets run in parallel sometimes end up touching the same file. Here's how to resolve the conflict based on the intention of each ticket.
The most important
- There are two intentions in a conflict: read both tickets before the code.
- First, integrate the most structured ticket, then re-base the other one.
- Re-launch the two ticket tests after resolution.
Where the Conflict Is From
The first agent renames a utility function, the second adds a call to the old name. Everyone worked properly in their worktree. The conflict appears when the second ticket is integrated: Git does not know which version to keep.
Starting with tickets, not markers
Before you open the file, read both tickets again. One was asking for a name, the other for a new feature. The right resolution keeps the new name and the added appeal. Reading the conflict markers without this intention often leads to cancelling half the work.
Trust the resolution or do it yourself
A simple conflict can be resolved by hand in seconds. For a wider conflict, re-base the branch of the second ticket and re- entrust it to the agent with both descriptions. Then he finds the full context.
Avoiding the Next Conflict
When two tickets hit the same module, declare a dependence on each other on the board. The second will wait for the first to be integrated. You lose a little bit of parallelism and you gain an unexpected integration.


