core Estimated learning time: 12 h

P-2.4 Working With Other People on Code

You can work on a line of development separately from the main one, merge it back, resolve a conflict by understanding both sides, and take part in a code review usefully.

Working alone, version control is an undo button. With other people it becomes the mechanism by which several changes to the same files stop destroying each other. This topic covers separate lines of development, merging, conflicts and review. The confusion worth naming is that a conflict is not an error and not a failure of the tool: it is the tool refusing to guess which of two intentions you meant.

Work through these

  • Working on a separate branch, and why that is the default habit

    A branch is a movable name for a line of commits, so starting one costs nothing and keeps unfinished work away from the version everyone else is using. Nearly every team convention is built on this one idea.

    Pro Git (2nd edition) · Reference
  • Merging, and reading what a merge actually did

    Bringing two lines of work together produces a commit with two parents, and being able to read that in the history is how you reconstruct what happened later.

  • Resolving a conflict by understanding both sides

    A conflict marks the places where two people changed the same lines and the tool will not choose for you. Reading both versions and deciding deliberately is the work; picking one at random is how correct code disappears.

  • Remotes: pushing, pulling, and what happens when histories diverge

    Your copy and the shared copy are separate repositories that exchange commits, which is why a push can be refused. Understanding divergence removes most of the fear around that refusal.

  • Opening a change for review, and reviewing somebody else's

    A review is a conversation about a proposed change before it becomes part of the shared history. Being useful in one means reading for correctness first and for taste a long way second.

    GitHub: Git Guides · Tutorial

Sign in to keep your progress.

Free resources

Links last checked 31 Aug 2026.

Stuck here?

Ask a mentor. A real person answers, and they can see exactly which topic you're on. Usually within a couple of working days.

Checking your session…

Topics shown in module order.