When I ran git gui
, I got this:
$ git gui
git: \'gui\' is not a git command. See \'git --help\'.
Did you mean one of these?
grep
init
p
You might need to install/upgrade separately the git-gui package after installing Mountain Lion.
As mentioned in "Git GUI client for Linux", git gui
has its own package (beside git-core
).
From the comments, it seems a git-gui package isn't yet available for Mountain Lion.
However, this post report making work an alternative gui like Source Tree.
That could be a good workaround.
Edit your git config to an add an entry for gui in the alias section
nano ~/.gitconfig
[alias]
gui = !sh -c '/usr/local/git/libexec/git-core/git-gui'
It looks like the path in the original answer is now obsolete. Updated instructions:
[alias]
gui = !sh -c '/usr/local/opt/git/bin/git gui'
Seems like in late 2017 all answers above got obsolete, so here's my new answer:
brew install git
/usr/local/opt/git/bin/git gui
In addition to Victor's answer above, you need to an additional step, because brew install git didn't create simlink for git-gui.
Inside /usr/local/bin, run the following:
ln -s ../Cellar/git/1.8.3.2/libexec/git-core/git-gui git-gui
(Replace git version with your own)
I have the same issue. Git-gui appears still installed for me (/usr/local/git/libexec/git-core/git-gui is my location) but it doesn't just work without specifying the full path. This indicates a path issue, but I've not looked into it much further.
edit Try adding /usr/local/git/libexec/git-core to the beginning of your PATH variable. Looks like all the git binaries are there so that should work.
Adding to the path worked for me.
I just added this line to my ~/.profile and git gui is alive once again. &(%ing mountain lion. export PATH=PATH:/usr/local/git/libexec/git-core