3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
7 .\" Source: Git 2.47.0.rc1.33.g90fe3800b9
10 .TH "GITK" "1" "2024-10-04" "Git 2\&.47\&.0\&.rc1\&.33\&.g9" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 gitk \- The Git repository browser
35 \fIgitk\fR [<options>] [<revision\-range>] [\-\-] [<path>\&...\:]
39 Displays changes in a repository or a selected set of commits\&. This includes visualizing the commit graph, showing information related to each commit, and the files in the trees of each revision\&.
42 To control which revisions to show, gitk supports most options applicable to the \fIgit rev\-list\fR command\&. It also supports a few options applicable to the \fIgit diff\-*\fR commands to control how the changes each commit introduces are shown\&. Finally, it supports some gitk\-specific options\&.
44 gitk generally only understands options with arguments in the \fIstuck\fR form (see \fBgitcli\fR(7)) due to limitations in the command\-line parser\&.
45 .SS "rev\-list options and arguments"
47 This manual page describes only the most frequently used options\&. See \fBgit-rev-list\fR(1) for a complete list\&.
51 Show all refs (branches, tags, etc\&.)\&.
54 \-\-branches[=<pattern>], \-\-tags[=<pattern>], \-\-remotes[=<pattern>]
56 Pretend as if all the branches (tags, remote branches, resp\&.) are listed on the command line as
59 is given, limit refs to ones matching given shell glob\&. If pattern lacks
64 at the end is implied\&.
69 Show commits more recent than a specific date\&.
74 Show commits older than a specific date\&.
79 Sort commits by date when possible\&.
84 After an attempt to merge stops with conflicts, show the commits on the history between two branches (i\&.e\&. the HEAD and the MERGE_HEAD) that modify the conflicted files and do not exist on all the heads being merged\&.
89 Mark which side of a symmetric difference a commit is reachable from\&. Commits from the left side are prefixed with a
91 symbol and those from the right with a
98 When filtering history with
99 \fI<path>\&...\:\fR, does not prune some history\&. (See "History simplification" in
101 for a more detailed explanation\&.)
107 \fB\-\-full\-history\fR
108 to remove some needless merges from the resulting history, as there are no selected commits contributing to this merge\&. (See "History simplification" in
110 for a more detailed explanation\&.)
115 When given a range of commits to display (e\&.g\&.
116 \fIcommit1\&.\&.commit2\fR
118 \fIcommit2 ^commit1\fR), only display commits that exist directly on the ancestry chain between the
121 \fIcommit2\fR, i\&.e\&. commits that are both descendants of
122 \fIcommit1\fR, and ancestors of
123 \fIcommit2\fR\&. (See "History simplification" in
125 for a more detailed explanation\&.)
128 \-L<start>,<end>:<file>, \-L:<funcname>:<file>
130 Trace the evolution of the line range given by
131 \fI<start>,<end>\fR, or by the function name regex
132 \fI<funcname>\fR, within the
133 \fI<file>\fR\&. You may not give any pathspec limiters\&. This is currently limited to a walk starting from a single revision, i\&.e\&., you may only give zero or one positive revision arguments, and
138 \fI<funcname>\fR) must exist in the starting revision\&. You can specify this option more than once\&. Implies
139 \fB\-\-patch\fR\&. Patch output can be suppressed using
140 \fB\-\-no\-patch\fR, but other diff formats (namely
146 \fB\-\-name\-only\fR,
147 \fB\-\-name\-status\fR,
148 \fB\-\-check\fR) are not currently implemented\&.
153 can take one of these forms:
169 is a number, it specifies an absolute line number (lines count from 1)\&.
182 This form will use the first line matching the given POSIX regex\&. If
184 is a regex, it will search from the end of the previous
186 range, if any, otherwise from the start of file\&. If
189 \fB^/regex/\fR, it will search from the start of file\&. If
191 is a regex, it will search starting at the line given by
205 This is only valid for
207 and will specify a number of lines before or after the line given by
216 \fI<end>\fR, it is a regular expression that denotes the range from the first funcname line that matches
217 \fI<funcname>\fR, up to the next funcname line\&.
219 searches from the end of the previous
221 range, if any, otherwise from the start of file\&.
223 searches from the start of file\&. The function names are determined in the same way as
225 works out patch hunk headers (see
226 \fIDefining a custom hunk\-header\fR
228 \fBgitattributes\fR(5))\&.
233 Limit the revisions to show\&. This can be either a single revision meaning show from the given revision and back, or it can be a range in the form "\fI<from>\fR\&.\&.\fI<to>\fR" to show all revisions between
236 \fI<to>\fR\&. Note, more advanced revision selection can be applied\&. For a more complete list of ways to spell object names, see
237 \fBgitrevisions\fR(7)\&.
242 Limit commits to the ones touching files in the given paths\&. Note, to avoid ambiguity with respect to revision names use "\-\-" to separate the paths from any preceding options\&.
244 .SS "gitk\-specific options"
246 \-\-argscmd=<command>
248 Command to be run each time gitk has to determine the revision range to show\&. The command is expected to print on its standard output a list of additional revisions to be shown, one per line\&. Use this instead of explicitly specifying a
249 \fI<revision\-range>\fR
250 if the set of commits to show may vary between refreshes\&.
253 \-\-select\-commit=<ref>
255 Select the specified commit after loading the graph\&. Default behavior is equivalent to specifying
256 \fI\-\-select\-commit=HEAD\fR\&.
260 gitk v2\&.6\&.12\&.\&. include/scsi drivers/scsi
262 Show the changes since version
264 that changed any file in the include/scsi or drivers/scsi subdirectories
267 gitk \-\-since="2 weeks ago" \-\- gitk
269 Show the changes during the last two weeks to the file
270 \fIgitk\fR\&. The "\-\-" is necessary to avoid confusion with the
276 gitk \-\-max\-count=100 \-\-all \-\- Makefile
278 Show at most 100 changes made to the file
279 \fIMakefile\fR\&. Instead of only looking for changes in the current branch look in all branches\&.
283 User configuration and preferences are stored at:
293 \fB$XDG_CONFIG_HOME/git/gitk\fR
294 if it exists, otherwise
309 If neither of the above exist then \fB$XDG_CONFIG_HOME/git/gitk\fR is created and used by default\&. If \fI$XDG_CONFIG_HOME\fR is not set it defaults to \fB$HOME/\&.config\fR in all cases\&.
312 Gitk was the first graphical repository browser\&. It\(cqs written in tcl/tk\&.
314 \fIgitk\fR is actually maintained as an independent project, but stable versions are distributed as part of the Git suite for the convenience of end users\&.
316 gitk\-git/ comes from Paul Mackerras\(cqs gitk project:
322 git://ozlabs\&.org/~paulus/gitk
331 A repository browser written in C++ using Qt\&.
336 A minimal repository browser and Git tool output highlighter written in C using Ncurses\&.
340 Part of the \fBgit\fR(1) suite