Chapter 1. Navigating Git

In this chapter, we will cover the following topics:

  • Git's objects
  • The three stages
  • Viewing the DAG
  • Extracting fixed issues
  • Getting a list of the changed files
  • Viewing the history with Gitk
  • Finding commits in the history
  • Searching through the history code


In this chapter, we will take a look at Git's data model. We will learn how Git references its objects and how the history is recorded. We will learn how to navigate the history, from finding certain text snippets in commit messages to the introduction of a certain string in the code.

The data model of Git is different from other common version control systems (VCSs) in the way Git handles its data. Traditionally, a VCS will store its data as an initial file followed ...

Get Git: Mastering Version Control now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.