O'Reilly logo

Learn Git in a Month of Lunches by Rick Umali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required