Which command shows the commit history?

  1. git diff
  2. git status
  3. git show
  4. git log

Explanation

The 'git log' command displays the commit history, showing commit hashes, authors, dates, and commit messages. Various options can customize the output format.