blob: bd005bc5c8c7d877ea9de79e2f6452d5703d0892 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231gitk(1)
2=======
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506gitk - The git repository browser
Junio C Hamano1a4e8412005-12-27 08:17:237
8SYNOPSIS
9--------
Junio C Hamano6b2cee12006-08-26 08:43:3110'gitk' [<option>...] [<revs>] [--] [<path>...]
Junio C Hamano1a4e8412005-12-27 08:17:2311
12DESCRIPTION
13-----------
Junio C Hamano6b2cee12006-08-26 08:43:3114Displays changes in a repository or a selected set of commits. This includes
15visualizing the commit graph, showing information related to each commit, and
16the files in the trees of each revision.
Junio C Hamano1a4e8412005-12-27 08:17:2317
Junio C Hamano6b2cee12006-08-26 08:43:3118Historically, gitk was the first repository browser. It's written in tcl/tk
19and started off in a separate repository but was later merged into the main
20git repository.
Junio C Hamano1a4e8412005-12-27 08:17:2321
22OPTIONS
23-------
Junio C Hamano54bf1e22008-12-20 06:30:1124To control which revisions to show, the command takes options applicable to
Junio C Hamanoba4b9282008-07-06 05:20:3125the 'git-rev-list' command (see linkgit:git-rev-list[1]).
Junio C Hamanofce7c7e2008-07-02 03:06:3826This manual page describes only the most
Junio C Hamano6b2cee12006-08-26 08:43:3127frequently used options.
Junio C Hamano1a4e8412005-12-27 08:17:2328
Junio C Hamanoeb415992008-06-08 22:49:4729-n <number>::
30--max-count=<number>::
Junio C Hamano1a4e8412005-12-27 08:17:2331
Junio C Hamano6b2cee12006-08-26 08:43:3132Limits the number of commits to show.
33
34--since=<date>::
35
36Show commits more recent than a specific date.
37
38--until=<date>::
39
40Show commits older than a specific date.
41
Junio C Hamanod5784132006-09-20 21:29:2742--all::
43
44Show all branches.
45
Junio C Hamano7d575a52008-04-30 08:45:2746--merge::
47
48After an attempt to merge stops with conflicts, show the commits on
49the history between two branches (i.e. the HEAD and the MERGE_HEAD)
Junio C Hamano61169122009-02-09 18:05:4950that modify the conflicted files and do not exist on all the heads
51being merged.
Junio C Hamano7d575a52008-04-30 08:45:2752
Junio C Hamanoa387df32008-08-29 08:56:5853--argscmd=<command>::
54Command to be run each time gitk has to determine the list of
55<revs> to show. The command is expected to print on its standard
56output a list of additional revs to be shown, one per line.
57Use this instead of explicitly specifying <revs> if the set of
58commits to show may vary between refreshes.
59
Junio C Hamanod3452a02008-11-15 08:07:5560--select-commit=<ref>::
61
62Automatically select the specified commit after loading the graph.
63Default behavior is equivalent to specifying '--select-commit=HEAD'.
64
Junio C Hamano6b2cee12006-08-26 08:43:3165<revs>::
66
67Limit the revisions to show. This can be either a single revision
68meaning show from the given revision and back, or it can be a range in
69the form "'<from>'..'<to>'" to show all revisions between '<from>' and
70back to '<to>'. Note, more advanced revision selection can be applied.
Junio C Hamano2d47c622007-01-18 06:24:1071For a more complete list of ways to spell object names, see
Junio C Hamano35738e82008-01-07 07:55:4672"SPECIFYING REVISIONS" section in linkgit:git-rev-parse[1].
Junio C Hamano6b2cee12006-08-26 08:43:3173
Junio C Hamano9e395072008-07-31 22:11:2174<path>...::
Junio C Hamano6b2cee12006-08-26 08:43:3175
76Limit commits to the ones touching files in the given paths. Note, to
77avoid ambiguity wrt. revision names use "--" to separate the paths
Junio C Hamanoee1e4282007-02-04 08:32:0478from any preceding options.
Junio C Hamano1a4e8412005-12-27 08:17:2379
80Examples
81--------
82gitk v2.6.12.. include/scsi drivers/scsi::
83
Junio C Hamano54bf1e22008-12-20 06:30:1184Show the changes since version 'v2.6.12' that changed any
Junio C Hamano1a4e8412005-12-27 08:17:2385file in the include/scsi or drivers/scsi subdirectories
86
Junio C Hamano1bb569e2006-05-05 23:14:2587gitk --since="2 weeks ago" \-- gitk::
Junio C Hamano1a4e8412005-12-27 08:17:2388
89Show the changes during the last two weeks to the file 'gitk'.
90The "--" is necessary to avoid confusion with the *branch* named
91'gitk'
92
Junio C Hamano764a6672007-10-23 01:23:3193gitk --max-count=100 --all \-- Makefile::
Junio C Hamanod5784132006-09-20 21:29:2794
95Show at most 100 changes made to the file 'Makefile'. Instead of only
96looking for changes in the current branch look in all branches.
97
Junio C Hamano1bdd3b02008-04-13 05:33:1898Files
99-----
100Gitk creates the .gitk file in your $HOME directory to store preferences
101such as display options, font, and colors.
102
Junio C Hamano9049d912008-05-29 02:09:50103SEE ALSO
Junio C Hamano6b2cee12006-08-26 08:43:31104--------
105'qgit(1)'::
106A repository browser written in C++ using Qt.
107
108'gitview(1)'::
109A repository browser written in Python using Gtk. It's based on
110'bzrk(1)' and distributed in the contrib area of the git repository.
111
112'tig(1)'::
113A minimal repository browser and git tool output highlighter written
114in C using Ncurses.
115
Junio C Hamano1a4e8412005-12-27 08:17:23116Author
117------
Junio C Hamano6b2cee12006-08-26 08:43:31118Written by Paul Mackerras <paulus@samba.org>.
Junio C Hamano1a4e8412005-12-27 08:17:23119
120Documentation
121--------------
Junio C Hamano6b2cee12006-08-26 08:43:31122Documentation by Junio C Hamano, Jonas Fonseca, and the git-list
123<git@vger.kernel.org>.
Junio C Hamano1a4e8412005-12-27 08:17:23124
125GIT
126---
Junio C Hamanof7c042d2008-06-06 22:50:53127Part of the linkgit:git[1] suite