Git

Git: git log --oneline --decorate -10 — Windows

Review recent commits.

Availability: Third-party software; install and version dependent.中文

Syntax

git log --oneline --decorate -10

Examples

Review recent commits.

git log --oneline --decorate -10

Parameters, options and clauses

Option / clauseDescription
--onelineShow each commit on one compact line.
--decorateShow branch and tag names.
-n <count>Limit the number of commits shown.
--graphDraw the commit ancestry graph.
--since=<date> / --author=<pattern>Filter commits by date or author.
Safety note

Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.

Official reference ↗Back to directory