Did Apple remove the 'git gui' command in XCode 4.5 command line tools?

て烟熏妆下的殇ゞ 提交于 2019-12-03 02:43:40

Apple did indeed remove the 'git gui' command, probably because they were removing X11 which 'git gui' is based on.

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

brew install git

Then I edited the /etc/paths file to have the /usr/local/bin directory come before the /usr/bin directory, because that wasn't right either. Then exited 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 git gui command works again.

This worked for me

sudo vi ~/.gitconfig

[alias]
gui = !sh -c '/usr/local/git/libexec/git-core/git-gui' 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!