blob: e8f3ccb43374882738b5e4384463db6c6df62aba [file] [log] [blame]
Junio C Hamano58784fc2007-06-23 08:48:571git-gui(1)
2==========
3
4NAME
5----
6git-gui - A portable graphical interface to Git
7
8SYNOPSIS
9--------
Junio C Hamano15567bc2011-07-23 00:51:5910[verse]
Junio C Hamano59a32b02021-12-10 22:53:3811'git gui' [<command>] [<arguments>]
Junio C Hamano58784fc2007-06-23 08:48:5712
13DESCRIPTION
14-----------
Junio C Hamano1aa40d22010-01-21 17:46:4315A Tcl/Tk based graphical user interface to Git. 'git gui' focuses
Junio C Hamano58784fc2007-06-23 08:48:5716on allowing users to make changes to their repository by making
17new commits, amending existing ones, creating branches, performing
18local merges, and fetching/pushing to remote repositories.
19
Junio C Hamano1aa40d22010-01-21 17:46:4320Unlike 'gitk', 'git gui' focuses on commit generation
Junio C Hamanofce7c7e2008-07-02 03:06:3821and single file annotation and does not show project history.
Junio C Hamanoba4b9282008-07-06 05:20:3122It does however supply menu actions to start a 'gitk' session from
Junio C Hamano1aa40d22010-01-21 17:46:4323within 'git gui'.
Junio C Hamano58784fc2007-06-23 08:48:5724
Junio C Hamano1aa40d22010-01-21 17:46:4325'git gui' is known to work on all popular UNIX systems, Mac OS X,
Junio C Hamano58784fc2007-06-23 08:48:5726and Windows (under both Cygwin and MSYS). To the extent possible
Junio C Hamano1aa40d22010-01-21 17:46:4327OS specific user interface guidelines are followed, making 'git gui'
Junio C Hamano58784fc2007-06-23 08:48:5728a fairly native interface for users.
29
30COMMANDS
31--------
32blame::
33Start a blame viewer on the specified file on the given
34version (or working directory if not specified).
35
36browser::
37Start a tree browser showing all files in the specified
Junio C Hamanodda5d0f2017-01-19 23:33:3138commit. Files selected through the
Junio C Hamano58784fc2007-06-23 08:48:5739browser are opened in the blame viewer.
40
41citool::
Junio C Hamano1aa40d22010-01-21 17:46:4342Start 'git gui' and arrange to make exactly one commit before
Junio C Hamano58784fc2007-06-23 08:48:5743exiting and returning to the shell. The interface is limited
44to only commit actions, slightly reducing the application's
45startup time and simplifying the menubar.
46
47version::
Junio C Hamano1aa40d22010-01-21 17:46:4348Display the currently running version of 'git gui'.
Junio C Hamano58784fc2007-06-23 08:48:5749
50
51Examples
52--------
Junio C Hamano16ebcd02011-08-05 00:05:4553`git gui blame Makefile`::
Junio C Hamano58784fc2007-06-23 08:48:5754
55Show the contents of the file 'Makefile' in the current
56working directory, and provide annotations for both the
57original author of each line, and who moved the line to its
58current location. The uncommitted file is annotated, and
59uncommitted changes (if any) are explicitly attributed to
60'Not Yet Committed'.
61
Junio C Hamano16ebcd02011-08-05 00:05:4562`git gui blame v0.99.8 Makefile`::
Junio C Hamano58784fc2007-06-23 08:48:5763
64Show the contents of 'Makefile' in revision 'v0.99.8'
Junio C Hamanoba4b9282008-07-06 05:20:3165and provide annotations for each line. Unlike the above
Junio C Hamano58784fc2007-06-23 08:48:5766example the file is read from the object database and not
67the working directory.
68
Junio C Hamano16ebcd02011-08-05 00:05:4569`git gui blame --line=100 Makefile`::
Junio C Hamanod3452a02008-11-15 08:07:5570
71Loads annotations as described above and automatically
72scrolls the view to center on line '100'.
73
Junio C Hamano16ebcd02011-08-05 00:05:4574`git gui citool`::
Junio C Hamano58784fc2007-06-23 08:48:5775
76Make one commit and return to the shell when it is complete.
Junio C Hamanod3452a02008-11-15 08:07:5577This command returns a non-zero exit code if the window was
78closed in any way other than by making a commit.
79
Junio C Hamano16ebcd02011-08-05 00:05:4580`git gui citool --amend`::
Junio C Hamanod3452a02008-11-15 08:07:5581
82Automatically enter the 'Amend Last Commit' mode of
83the interface.
84
Junio C Hamano16ebcd02011-08-05 00:05:4585`git gui citool --nocommit`::
Junio C Hamanod3452a02008-11-15 08:07:5586
87Behave as normal citool, but instead of making a commit
88simply terminate with a zero exit code. It still checks
89that the index does not contain any unmerged entries, so
90you can use it as a GUI version of linkgit:git-mergetool[1]
Junio C Hamano58784fc2007-06-23 08:48:5791
Junio C Hamano16ebcd02011-08-05 00:05:4592`git citool`::
Junio C Hamano58784fc2007-06-23 08:48:5793
Junio C Hamanoba4b9282008-07-06 05:20:3194Same as `git gui citool` (above).
Junio C Hamano58784fc2007-06-23 08:48:5795
Junio C Hamano16ebcd02011-08-05 00:05:4596`git gui browser maint`::
Junio C Hamano58784fc2007-06-23 08:48:5797
98Show a browser for the tree of the 'maint' branch. Files
99selected in the browser can be viewed with the internal
100blame viewer.
101
Junio C Hamano9049d912008-05-29 02:09:50102SEE ALSO
Junio C Hamano58784fc2007-06-23 08:48:57103--------
Junio C Hamano9049d912008-05-29 02:09:50104linkgit:gitk[1]::
Junio C Hamano076ffcc2013-02-06 05:13:21105The Git repository browser. Shows branches, commit history
Junio C Hamano58784fc2007-06-23 08:48:57106and file differences. gitk is the utility started by
Junio C Hamano1aa40d22010-01-21 17:46:43107'git gui''s Repository Visualize actions.
Junio C Hamano58784fc2007-06-23 08:48:57108
109Other
110-----
Junio C Hamano1aa40d22010-01-21 17:46:43111'git gui' is actually maintained as an independent project, but stable
Junio C Hamanoa6387422007-08-25 03:54:27112versions are distributed as part of the Git suite for the convenience
Junio C Hamano58784fc2007-06-23 08:48:57113of end users.
114
Junio C Hamano48cd3f12019-10-09 05:55:30115The official repository of the 'git gui' project can be found at:
Junio C Hamano58784fc2007-06-23 08:48:57116
Junio C Hamano48cd3f12019-10-09 05:55:30117 https://github.com/prati0100/git-gui.git/
Junio C Hamano58784fc2007-06-23 08:48:57118
Junio C Hamano58784fc2007-06-23 08:48:57119GIT
120---
Junio C Hamanof7c042d2008-06-06 22:50:53121Part of the linkgit:git[1] suite