Chapter 5: History

GIT IS AN EXCELLENT TOOL for synchronizing changes across all our computers, and that’s how we almost always use it—to keep each other in sync with what we’re doing right now. But although most of the time all we care about is the current version, or a few current ones, Git does a great job of storing and tracking every version of our project, and those other thousands of commits are still there, ripe for exploration.

Every commit you add to your repository contributes to the historical record of your project, so it’s a good idea to make the best, most meaningful commits you can. In this final chapter, we’ll look at some of Git’s ...

Get Git for Humans 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.