NAME¶gitk - The Git repository browser
gitk [<options>] [<revision range>] [--] [<path>...]
DESCRIPTION¶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.
OPTIONS¶To control which revisions to show, gitk supports most options applicable to the git rev-list command. It also supports a few options applicable to the git diff-* commands to control how the changes each commit introduces are shown. Finally, it supports some gitk-specific options.
gitk generally only understands options with arguments in the sticked form (see gitcli(7)) due to limitations in the command-line parser.
rev-list options and arguments¶This manual page describes only the most frequently used options. See git-rev-list(1) for a complete list.
--branches[=<pattern>], --tags[=<pattern>], --remotes[=<pattern>]
Note: gitk (unlike git-log(1)) currently only understands this option if you specify it "glued together" with its argument. Do not put a space after -L.
<start> and <end> can take one of these forms:
If <start> or <end> is a number, it specifies an absolute line number (lines count from 1).
This form will use the first line matching the given POSIX regex. If <start> is a regex, it will search from the end of the previous -L range, if any, otherwise from the start of file. If <start> is “^/regex/”, it will search from the start of file. If <end> is a regex, it will search starting at the line given by <start>.
This is only valid for <end> and will specify a number of lines before or after the line given by <start>.
If “:<funcname>” is given in place of <start> and <end>, it is a regular expression that denotes the range from the first funcname line that matches <funcname>, up to the next funcname line. “:<funcname>” searches from the end of the previous -L range, if any, otherwise from the start of file. “^:<funcname>” searches from the start of file.
EXAMPLES¶gitk v2.6.12.. include/scsi drivers/scsi
gitk --since="2 weeks ago" -- gitk
gitk --max-count=100 --all -- Makefile
FILES¶User configuration and preferences are stored at:
If neither of the above exist then $XDG_CONFIG_HOME/git/gitk is created and used by default. If $XDG_CONFIG_HOME is not set it defaults to $HOME/.config in all cases.
HISTORY¶Gitk was the first graphical repository browser. It’s written in tcl/tk.
gitk is actually maintained as an independent project, but stable versions are distributed as part of the Git suite for the convenience of end users.
gitk-git/ comes from Paul Mackerras’s gitk project:
GIT¶Part of the git(1) suite