Chapter 8. The time machine that is Git

When you make a commit into the repository, as you’ve been doing all along, you’re making a mark on a timeline. Each commit says that on this date, at this time, I made this content change. Each commit is a version of your entire project. In this chapter, you’ll learn that Git lets you visit any version of your project via the git checkout command. You’ll also learn how to bookmark past versions of your project by using git tag. Learning this gives you the capability to go back in time with your code, which is important for making bug fixes to released software. Ultimately, Git is a time machine for your code!

8.1. Working with git log

In the repository that you’ve been working on so far, you’ve made eight ...

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.