gitk
The Git repository browser
- Provided by: gitk (Version: 1:1.9.1-1ubuntu0.10)
- Source: git
- Report a bug
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:<regex>:<file>
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 “:<regex>” is given in place of <start> and <end>, it denotes the range from the first funcname line that matches <regex>, up to the next funcname line. “:<regex>” searches from the end of the previous -L range, if any, otherwise from the start of file. “^:<regex>” searches from the start of file.
<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
Gitk creates the .gitk file in your $HOME directory to store preferences such as display options, font, and colors.
Gitk was the first graphical repository browser. It’s written in tcl/tk and started off in a separate repository but was later merged into the main Git repository.
Part of the git(1) suite