Did Apple remove the "git gui" command in the Xcode 4.5 command-line tools?

After upgrading to Xcode 4.5 and installing the developer tools, I can no longer run the 'git gui' command from the command line. It says:

$ git gui git: 'gui' is not a git command. See 'git --help'. 

I am running this version:

 $ git --version git version 1.7.10.2 (Apple Git-33) 

A search for git docs (http: // git -scm.com/docs/git -gui) shows that 'git gui' must be available and has not changed since version 1.7. 7. So has this version of Apple git removed this command? I use it all the time!

+17
git git-gui
01 Oct
source share
2 answers

Apple really deleted the 'git gui' command, perhaps because they were the X11 removal , which git gui is based on.

I decided to just homebrew git instead of relying on Xcode command line tools.

 brew install git 

Then I edited the / etc / paths file so that the / usr / local / bin directory would fall into the / usr / bin directory because it was wrong. Then I went out of the terminal window and restarted, and now I get:

 $ which git /usr/local/bin/git $ git --version git version 1.7.12.1 

and the gui git command works again.

+24
Oct 02
source share

It worked for me

sudo vi ~ / .gitconfig

 [alias] gui = !sh -c '/usr/local/git/libexec/git-core/git-gui' 
0
04 Oct '16 at 10:39
source share



All Articles