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 ...
Get Learn Git in a Month of Lunches 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.