git log

Show the commit history

This command displays an ordered list of the recent commits made in the current repository, starting with the most recent.

By default, it shows the commit hash, author, date, and commit message.

It offers several flags for customization. For instance, using the -n flag followed by a number, like git log -n 3, will limit the output to the last three commits. Similarly, git log --oneline simplifies the information to one line per commit, with a shorter commit hash and the commit message. And --stat like in git log --stat gives a summary of the changes in each commit.