Viewing Local Project History

In this section, you will discover commands for viewing the history of your project.

Using Git Log

When you clone a repository, you receive the history of all of the commits made in that repository. The log command allows us to view that history on our local machine.

Let's take a look at some of the option switches you can use to customize your view of the project history.

$ git log
$ git log --oneline
$ git log --oneline --graph
$ git log --oneline --graph --decorate
$ git log --oneline --graph --decorate --all
$ git log --stat
$ git log --patch

Use the up and down arrows or press enter to view additional log entries. Type q to quit viewing the log and return to the command prompt.

results matching ""

    No results matching ""