9

Using the Log

One of the most powerful commands in Git is log. You've already seen the log being used a bit in previous chapters, but now it is time to look at it in detail.

The log can show you when each commit was created, who created it, and other useful information about the commit, such as what changed in each file. You have great control over what is displayed, as you will see in this chapter.

Getting started with log

Let's quickly build another project and repository:

Figure 9.1: Create a new repository

Next, as we have done before, we'll clone this repository to our local machine:

Figure 9.2: Cloning the demo program

With this local ...

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