GITK(1) | Git Manual | GITK(1) |
gitk - The Git repository browser
gitk [<options>] [<revision range>] [--] [<path>...]
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.
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.
This manual page describes only the most frequently used options. See git-rev-list(1) for a complete list.
--all
--branches[=<pattern>], --tags[=<pattern>], --remotes[=<pattern>]
--since=<date>
--until=<date>
--date-order
--merge
--left-right
--full-history
--simplify-merges
--ancestry-path
-L<start>,<end>:<file>, -L:<funcname>:<file>
<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. The function names are determined in the same way as git diff works out patch hunk headers (see Defining a custom hunk-header in gitattributes(5)).
<revision range>
<path>...
--argscmd=<command>
--select-commit=<ref>
gitk v2.6.12.. include/scsi drivers/scsi
gitk --since="2 weeks ago" -- gitk
gitk --max-count=100 --all -- Makefile
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.
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://ozlabs.org/~paulus/gitk
Part of the git(1) suite
02/22/2023 | Git 2.30.2 |