Chapter Eight · Collaboration

Working With Other People

Theo arrives. Nothing here is new Git — it is Chapters 6 and 7 with a website and a second person in the middle: the team loop, pull requests, code review from both sides, merging, and the issues that start most real work.

5 topics

Theo has cloned Sandpiper and wants to add photographs to the sightings page. From here on, two people are changing the same project.

Almost nothing in this chapter is new Git. The team workflow is Chapter 6's branch-commit-merge loop with Chapter 7's push in the middle and a website wrapped around it. What is genuinely new is social rather than technical: a change gets read by someone else before it becomes part of the project.

Five topics. The shape of the loop, so you can see how little of it is unfamiliar. Opening a pull request, which is mostly an exercise in writing a description someone can act on. Review, from both sides, which is where beginners learn fastest and feel worst. Merging, and the two cleanup steps people forget. And issues, which is where most real work on GitHub starts.

The team loop — and how much of it you already know
Branch and commitChapters 6 and 2
PushChapter 7
Pull requestnew
Review and mergenew, then Chapter 6

Topics in This Chapter