问题描述
更新到XCode 4.5并安装开发人员工具后,我无法再从命令行运行'git gui'命令。它说: $ git gui
git:'gui'不是git命令。参见'git --help'。
我正在运行此版本:
$ git --version
git版本1.7.10.2(Apple Git-33)
搜索git文档(http://git-scm.com/docs/git-gui)显示'git gui'应该可用,并且从版本1.7.7开始没有改变。那么这个苹果版本的git删除了这个命令?我一直都在使用它!
Apple确实删除了'git gui'命令,可能是因为它们是,其中'git gui'是基于的。
我决定只用homebrew git而不是依靠XCode命令行工具。 / p>
brew install git
然后,我编辑/ etc / paths文件以使/ usr / local / bin目录位于/ usr / bin目录之前,因为那不正确。然后退出终端窗口并重新启动,现在我得到:
$ which git
/ usr / local / bin / git
$ git --version
git版本1.7.12.1
和git gui命令再次运行。
After updating 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'm running this version:
$ git --version
git version 1.7.10.2 (Apple Git-33)
Searching the git docs (http://git-scm.com/docs/git-gui) shows 'git gui' should be available, and hasn't changed since version 1.7.7. So did this Apple version of git remove this command? I use it all the time!
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.
这篇关于苹果是否删除了XCode 4.5命令行工具中的'git gui'命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!