Chapter 4. Making and using a Git repository

You spent yesterday reviewing the command line and learning how to get help from Git. You also configured Git by telling it your name and email address. You saw in figure 1.2 of chapter 1 that Git gives each and every user the entire repository. Today you’re going to create your own Git repository by using the git init command. You’ll then add files into it by using git add and git commit. Finally, you’ll learn how to get your repository’s status and history with the git status and git log commands.

These are fundamental commands for working with Git! I hope you’ll see that creating a repository isn’t such a big deal, and that because repositories are so easy to create, it always makes sense to create ...

Get Learn Git in a Month of Lunches now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.