WEEK 7 · LESSON 4 · TOPIC 3 OF 11 · Viewing Commit History

Viewing Commit History

Lesson progress

0% Complete

SECTION 1 OF 1

In this topic · 1 sections
  1. Overview

Overview

Display the full commit history with:

git log

The log includes commit identifiers, author information, dates, and commit messages.

Display a compact history with:

git log --oneline

This view shows shortened commit identifiers and messages, making it easier to scan the sequence of changes.

A commit identifier points to a specific saved state. The shortened identifier shown by --oneline can be used when it uniquely identifies the intended commit.