Why they occur, what to do when they occur, and how to avoid them
Git normally can resolve differences between branches automatically
Changes on different branches that compete with each other are more difficult to resolve
Requires manually choosing which changes to keep
(more advanced scenarios)
Merge conflicts are denoted by conflict markers: <<<<<<<
, =======
, >>>>>>>
Anything between <<<<<<<
and =======
is from the base branch
Anything between =======
and >>>>>>>
is from the compare branch
The name of the base and compare branches are denoted in line with <<<<<<<
and >>>>>>>
<<<<<<<
<<<<<<<
, =======
, and >>>>>>>
Communicate
Make small, frequent commits and pull requests
Review others’ pull requests
U.S. Department of Commerce | National Oceanic and Atmospheric Administration | National Marine Fisheries Service