3
Branching, Places, and GUIs
In this chapter, you will learn about the crucial "five places" for Git: the work area, the index, the local repository, the remote repository, and the stash. You will see how to use each of these and how they work together.
Each concept will be illustrated with both code and screenshots, and most Git actions will be illustrated in the command line, Visual Studio, and a GUI (GitHub Desktop).
You'll also learn about creating branches, committing code, and how to move commits from the work area to the repository, and from the repository to the remote repository.
Five places
As a programmer I think of Git as divided into five places:
- The work area
- The index (staging area)
- The local repository
- The remote repository ...
Get Git for Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.