Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 1 | git-gui(1) |
| 2 | ========== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | git-gui - A portable graphical interface to Git |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 10 | [verse] |
Junio C Hamano | 59a32b0 | 2021-12-10 22:53:38 | [diff] [blame] | 11 | 'git gui' [<command>] [<arguments>] |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 15 | A Tcl/Tk based graphical user interface to Git. 'git gui' focuses |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 16 | on allowing users to make changes to their repository by making |
| 17 | new commits, amending existing ones, creating branches, performing |
| 18 | local merges, and fetching/pushing to remote repositories. |
| 19 | |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 20 | Unlike 'gitk', 'git gui' focuses on commit generation |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 21 | and single file annotation and does not show project history. |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 22 | It does however supply menu actions to start a 'gitk' session from |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 23 | within 'git gui'. |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 24 | |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 25 | 'git gui' is known to work on all popular UNIX systems, Mac OS X, |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 26 | and Windows (under both Cygwin and MSYS). To the extent possible |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 27 | OS specific user interface guidelines are followed, making 'git gui' |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 28 | a fairly native interface for users. |
| 29 | |
| 30 | COMMANDS |
| 31 | -------- |
| 32 | blame:: |
| 33 | Start a blame viewer on the specified file on the given |
| 34 | version (or working directory if not specified). |
| 35 | |
| 36 | browser:: |
| 37 | Start a tree browser showing all files in the specified |
Junio C Hamano | dda5d0f | 2017-01-19 23:33:31 | [diff] [blame] | 38 | commit. Files selected through the |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 39 | browser are opened in the blame viewer. |
| 40 | |
| 41 | citool:: |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 42 | Start 'git gui' and arrange to make exactly one commit before |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 43 | exiting and returning to the shell. The interface is limited |
| 44 | to only commit actions, slightly reducing the application's |
| 45 | startup time and simplifying the menubar. |
| 46 | |
| 47 | version:: |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 48 | Display the currently running version of 'git gui'. |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 49 | |
| 50 | |
| 51 | Examples |
| 52 | -------- |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 53 | `git gui blame Makefile`:: |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 54 | |
| 55 | Show the contents of the file 'Makefile' in the current |
| 56 | working directory, and provide annotations for both the |
| 57 | original author of each line, and who moved the line to its |
| 58 | current location. The uncommitted file is annotated, and |
| 59 | uncommitted changes (if any) are explicitly attributed to |
| 60 | 'Not Yet Committed'. |
| 61 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 62 | `git gui blame v0.99.8 Makefile`:: |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 63 | |
| 64 | Show the contents of 'Makefile' in revision 'v0.99.8' |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 65 | and provide annotations for each line. Unlike the above |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 66 | example the file is read from the object database and not |
| 67 | the working directory. |
| 68 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 69 | `git gui blame --line=100 Makefile`:: |
Junio C Hamano | d3452a0 | 2008-11-15 08:07:55 | [diff] [blame] | 70 | |
| 71 | Loads annotations as described above and automatically |
| 72 | scrolls the view to center on line '100'. |
| 73 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 74 | `git gui citool`:: |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 75 | |
| 76 | Make one commit and return to the shell when it is complete. |
Junio C Hamano | d3452a0 | 2008-11-15 08:07:55 | [diff] [blame] | 77 | This command returns a non-zero exit code if the window was |
| 78 | closed in any way other than by making a commit. |
| 79 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 80 | `git gui citool --amend`:: |
Junio C Hamano | d3452a0 | 2008-11-15 08:07:55 | [diff] [blame] | 81 | |
| 82 | Automatically enter the 'Amend Last Commit' mode of |
| 83 | the interface. |
| 84 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 85 | `git gui citool --nocommit`:: |
Junio C Hamano | d3452a0 | 2008-11-15 08:07:55 | [diff] [blame] | 86 | |
| 87 | Behave as normal citool, but instead of making a commit |
| 88 | simply terminate with a zero exit code. It still checks |
| 89 | that the index does not contain any unmerged entries, so |
| 90 | you can use it as a GUI version of linkgit:git-mergetool[1] |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 91 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 92 | `git citool`:: |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 93 | |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 94 | Same as `git gui citool` (above). |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 95 | |
Junio C Hamano | 16ebcd0 | 2011-08-05 00:05:45 | [diff] [blame] | 96 | `git gui browser maint`:: |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 97 | |
| 98 | Show a browser for the tree of the 'maint' branch. Files |
| 99 | selected in the browser can be viewed with the internal |
| 100 | blame viewer. |
| 101 | |
Junio C Hamano | 9049d91 | 2008-05-29 02:09:50 | [diff] [blame] | 102 | SEE ALSO |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 103 | -------- |
Junio C Hamano | 9049d91 | 2008-05-29 02:09:50 | [diff] [blame] | 104 | linkgit:gitk[1]:: |
Junio C Hamano | 076ffcc | 2013-02-06 05:13:21 | [diff] [blame] | 105 | The Git repository browser. Shows branches, commit history |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 106 | and file differences. gitk is the utility started by |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 107 | 'git gui''s Repository Visualize actions. |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 108 | |
| 109 | Other |
| 110 | ----- |
Junio C Hamano | 1aa40d2 | 2010-01-21 17:46:43 | [diff] [blame] | 111 | 'git gui' is actually maintained as an independent project, but stable |
Junio C Hamano | a638742 | 2007-08-25 03:54:27 | [diff] [blame] | 112 | versions are distributed as part of the Git suite for the convenience |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 113 | of end users. |
| 114 | |
Junio C Hamano | 48cd3f1 | 2019-10-09 05:55:30 | [diff] [blame] | 115 | The official repository of the 'git gui' project can be found at: |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 116 | |
Junio C Hamano | 48cd3f1 | 2019-10-09 05:55:30 | [diff] [blame] | 117 | https://github.com/prati0100/git-gui.git/ |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 118 | |
Junio C Hamano | 58784fc | 2007-06-23 08:48:57 | [diff] [blame] | 119 | GIT |
| 120 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 121 | Part of the linkgit:git[1] suite |