git-gui.txt 3.4 KB

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