Git

Branches, commits and pull requests: the workflow behind every change to this site and to CivicGrid.

Git basics

Each lesson explains one idea in plain words, has you try it in a practice repository on your laptop, then shows how I use Git for this site and for CivicGrid, including what went wrong.

  1. 1What Git solvesStart · 12 min
  2. 2Your first repositoryStart · 25 min
  3. 3Undoing thingsStart · 25 min
  4. 4BranchesStart · 25 min
  5. 5GitHub and pull requestsStart · 35 min
  6. 6When things go wrongStart · 25 min

Pro Git (opens in a new tab)

The free official book. Chapters 1 to 3 cover what most people use every day.

Free

GitHub CLI (opens in a new tab)

Open, review and merge pull requests from the terminal with gh.

Free

Git Logo by Jason Long, licensed CC BY 3.0.