1git-log(1)
2==========
34
NAME
5----
6git-log - Show commit logs
78
9
SYNOPSIS
10--------
11'git-log' <option>...
1213
DESCRIPTION
14-----------
15Shows the commit logs.
1617
The command takes options applicable to the gitlink:git-rev-list[1]
18command to control what is shown and how, and options applicable to
19the gitlink:git-diff-tree[1] commands to control how the change
20each commit introduces are shown.
2122
This manual page describes only the most frequently used options.
2324
25
OPTIONS
26-------
2728
include::pretty-formats.txt[]
2930
--max-count=<n>::
31Limits the number of commits to show.
3233
<since>..<until>::
34Show only commits between the named two commits.
3536
-p::
37Show the change the commit introduces in a patch form.
3839
<paths>...::
40Show only commits that affect the specified paths.
4142
43
Examples
44--------
45git log --no-merges::
4647
Show the whole commit history, but skip any merges
4849
git log v2.6.12.. include/scsi drivers/scsi::
5051
Show all commits since version 'v2.6.12' that changed any file
52in the include/scsi or drivers/scsi subdirectories
5354
git log --since="2 weeks ago" \-- gitk::
5556
Show the changes during the last two weeks to the file 'gitk'.
57The "--" is necessary to avoid confusion with the *branch* named
58'gitk'
5960
git log -r --name-status release..test::
6162
Show the commits that are in the "test" branch but not yet
63in the "release" branch, along with the list of paths
64each commit modifies.
6566
Discussion
67----------
6869
include::i18n.txt[]
7071
72
Author
73------
74Written by Linus Torvalds <torvalds@osdl.org>
7576
Documentation
77--------------
78Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
7980
GIT
81---
82Part of the gitlink:git[7] suite
83