- bookworm 1:2.39.2-1.1
- testing 1:2.43.0-1
- unstable 1:2.45.2-1
- experimental 1:2.45.2+next.20240614-1
GITK(1) | Git Manual | GITK(1) |
NAME¶
gitk - The Git repository browser
SYNOPSIS¶
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 stuck 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.
--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>...
gitk-specific options¶
--argscmd=<command>
--select-commit=<ref>
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:
SEE ALSO¶
GIT¶
Part of the git(1) suite
06/16/2024 | Git 2.45.2 |