thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Foundational

git log

A Git command that displays commit history with authors, dates, messages, and optionally diffs and graphs.

Definition

Useful options include --oneline, --graph, --all, --author, -p, and -- <path> to show history for a file. git diff shows changes between commits, the index, and the working tree.

Example

git log --oneline --graph --all

Exam tip

git log shows history; git diff shows line-level changes; git status shows current state.

Related terms