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
-<n>::
31Limits the number of commits to show.
3233
<since>..<until>::
34Show only commits between the named two commits. When
35either <since> or <until> is omitted, it defaults to
36`HEAD`, i.e. the tip of the current branch.
3738
-p::
39Show the change the commit introduces in a patch form.
4041
<paths>...::
42Show only commits that affect the specified paths.
4344
45
Examples
46--------
47git log --no-merges::
4849
Show the whole commit history, but skip any merges
5051
git log v2.6.12.. include/scsi drivers/scsi::
5253
Show all commits since version 'v2.6.12' that changed any file
54in the include/scsi or drivers/scsi subdirectories
5556
git log --since="2 weeks ago" \-- gitk::
5758
Show the changes during the last two weeks to the file 'gitk'.
59The "--" is necessary to avoid confusion with the *branch* named
60'gitk'
6162
git log -r --name-status release..test::
6364
Show the commits that are in the "test" branch but not yet
65in the "release" branch, along with the list of paths
66each commit modifies.
6768
Discussion
69----------
7071
include::i18n.txt[]
7273
74
Author
75------
76Written by Linus Torvalds <torvalds@osdl.org>
7778
Documentation
79--------------
80Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
8182
GIT
83---
84Part of the gitlink:git[7] suite
85