Git Made Crystal Clear · chapter 6: Working with Remotes

Local vs remote: fetch brings the remote's commits down into origin/main; push sends...

2026-11-06

Below: the paragraph from the book that builds this idea, then the diagram itself (Figure 6.1.), and a recap. About a minute of reading.

Your work lives in three local areas: the working directory, the index, and your committed history (HEAD). The remote is a separate copy. Two commands move commits between them: git fetch pulls the remote's state down into a read-only remote-tracking branch called origin/main, and git push sends your commits up.

Figure 6.1. Local vs remote: fetch brings the remote's commits down into origin/main; push sends your commits up.
Figure 6.1. Local vs remote: fetch brings the remote's commits down into origin/main; push sends your commits up.

Recap

  • The idea: Local vs remote: fetch brings the remote's commits down into origin/main; push sends your commits up.
  • The picture: Figure 6.1., from chapter 6 ("Working with Remotes") of Git Made Crystal Clear.
  • Go deeper: the chapter builds this step by step, with recipes and sources at the end.

This diagram is one of many in Git Made Crystal Clear.

Every chapter opens with the gist, draws the hard ideas, and ends with recipes and sources.

Get the book

All diagrams