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 6. Tracking and updating files in Git

You’re now the proud owner of a Git repository. You’ve successfully added a single file into it. You can view the contents of your repository. It’s now time to dive a little deeper into how to update and keep track of changes that you make to files in your repository. This is clearly one of the most important features of any version control system!

In this chapter, you’ll create a new repository and then add files by using git add and git commit. You’ll learn about the git diff command, which will help you keep track of what you’ve changed in your repository as you’re working. You’ll then dive into the staging area, one of the special features of Git that enables you to commit parts of your changes ...

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