What happens when you and a teammate both commit on top of the same history, and how a pull puts it back together.
Both histories start at A, then split: they have diverged.
fatal: Need to specify how to reconcile divergent branches.git config (add --global for every repository), or per pull with --no-rebase, --rebase or --ff-only.If B and C changed the same lines, Git cannot combine them by itself. The merge (or rebase) stops and marks the file:
<<<<<<< HEAD
print("Hello, dog!")
=======
print("Hello, world!")
>>>>>>> origin/main
git add the filegit commit (merge) or git rebase --continue (rebase)