Command Details

$ git log

Display commit history.

Related Commands

  • $ git log --onelineShow each commit on a single line.
  • $ git log --graphDisplay a text-based graph of commits.
  • $ git log --author='John Doe'Show commits by a specific author.
  • $ git log --since='3 days ago'Show commits since a specific date.
  • $ git log --grep='keyword'Search for commits with a specific keyword.