63

I've installed git-gui tool via sudo apt-get install git-gui. But how do I start it? Trying with search or git-gui command did not find and UI tool for Git.

Sylvain Pineau
  • 61,564
  • 18
  • 149
  • 183
ubuntico
  • 2,782
  • 8
  • 37
  • 63
  • Shouldn't git already have git-gui built in? It says so at http://git-scm.com/downloads/guis – faizal Jul 13 '14 at 14:48
  • 1
    @faizal: It really depends on how the debian maintainers decided to package git, take a look at the list of binary packages created from the [git source package](http://packages.ubuntu.com/source/trusty/git) – Sylvain Pineau Jul 13 '14 at 15:53
  • @SylvainPineau ahh that makes sense. I guess installing `git-all` would have installed `git-gui` along with all the other packages related to `git`. – faizal Jul 13 '14 at 16:24
  • I usually start Git Gui via gitk, there is a menu option under File->Start Git Gui. Nice and seamless integration of two graphical Git tools on Linux. – Matt Nov 17 '20 at 17:45

3 Answers3

68

Type git citool to start git-gui.

If it gives the error: git: 'citool' is not a git command, just install the following package: git-gui

sudo apt-get install git-gui
alper
  • 232
  • 5
  • 21
Sylvain Pineau
  • 61,564
  • 18
  • 149
  • 183
35

Typing it without the dash/hyphen should work:

git gui

instead of git-gui.

Zanna
  • 69,223
  • 56
  • 216
  • 327
augre
  • 545
  • 1
  • 6
  • 11
  • 1
    If that doesn't work, run `sudo apt-get install git-gui` first. `apt-get install git` does not install `git gui`. – wisbucky Oct 13 '17 at 22:03
6

In terminal type :

git gui citool

Make one commit and return to the shell when it is complete. This command returns a non-zero exit code if the window was closed in any way other than by making a commit.

 git gui citool --amend

Automatically enter the Amend Last Commit mode of the interface.

git gui citool --nocommit

Behave as normal citool, but instead of making a commit simply terminate with a zero exit code. It still checks that the index does not contain any unmerged entries, so you can use it as a GUI version of git-mergetool.

Reference Site

nux
  • 37,371
  • 34
  • 117
  • 131
  • The reference site says `git gui is actually maintained as an independent project, but stable versions are distributed as part of the Git suite for the convenience of end users.` So is it really required to install `git-gui` or should i get it automatically inside `git`? I have done `apt-get install git` on my Ubuntu, but the `git gui citool` does not run. I get the error `git: 'gui' is not a git command.` – faizal Jul 13 '14 at 14:52
  • 2
    u need to install git-gui, use `sudo apt-get install git-gui` and then just enter command `git gui`, everything will work fine. – shruti May 12 '15 at 09:21