Chapter 4
Basic Local Workflow

We have investigated most of the key internal plumbing of Git in Chapter 2 and Chapter 3, in this chapter we look at a basic local Git workflow a developer might use and show how regular Git commands are interpreted into the plumbing actions we’ve seen so far.

4.1 Create a new repository

In Chapter 2 and Chapter 3 we looked at the details of local Git repositories and there interaction with a working area. In this chapter we look at the commands you are more likely to use day-to-day when using Git. The commands used in this chapter are so called ‘porcelain’ commands

4.2 Add a new file

4.2.1 How status leverages the index

l

4.3 Change a file

4.4 Add some directories and files