$ git log --s --shortstat -- generate summary diffstat --show-linear-break -- show a barrier between commits from different branches --show-signature -- validate GPG signature of commit --simplify-by-decoration -- show only commits that are referenced by a ref --simplify-merges -- milder version of --full-history --since -- show commits more recent than given date --single-worktree -- examine the current working tree only --skip -- skip given number of commits before output --source -- show which ref each commit is reached from --sparse -- when paths are given, display only commits that changes any of them --src-prefix -- use given prefix for source --stat -- generate diffstat instead of patch --stdin -- additionally read commits from standard input --submodule -- select output format for submodule differences --summary -- generate condensed summary of extended header information
下面命令按下tab自动补全的信息: $ git log --pretty= email -- use email headers like From and Subject format -- specify own format full -- all parts of commit messages fuller -- like full and includes dates medium -- most parts of messages oneline -- commit-ids and subject of messages raw -- the raw commits short -- few headers and only subject of messages