Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
Shouldn't git already have git-gui built in? It says so at – faizal Jul 13 '14 at 14:48
@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 – 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
up vote 8 down vote accepted

Type git citool to start git-gui

share|improve this answer
this gives me the error : git: 'citool' is not a git command. – faizal Jul 13 '14 at 14:49
Just install the following package: git-gui, sudo apt-get install git-gui – Sylvain Pineau Jul 13 '14 at 15:50
git gui works for me. – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Mar 12 '15 at 14:29
This gave me error git: 'citool' is not a git command. See 'git --help'. – Luzan Baral May 8 '15 at 9:40
@LuzanBaral: Please install the following packages: sudo apt-get install git-gui gitk – Sylvain Pineau May 8 '15 at 10:04


$ git gui

should work. Without dash.

share|improve this answer
There are already two answers above with working solutions. Yours provides nothing new. – Zacharee1 Oct 27 '15 at 1:16
Both of those use citool, which was not asked in the original question. He/She was trying to start it with git-gui instead of git gui. – augre Oct 27 '15 at 21:34
The top answer obviously answered the question, since the OP accepted it. – Zacharee1 Oct 27 '15 at 21:35
The top answer gave an answer, not actually the best answer to the question and it was accepted by the OP. That is how I would put it. – augre Oct 29 '15 at 1:04
Although more explanation about this answer is desirable- this answer is valid and it does add something new. – Sepero Oct 29 '15 at 13:21

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

share|improve this answer
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
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 9:21

protected by Sylvain Pineau Jun 23 at 18:53

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.