git gui在Mac中安装后无法工作(例如Mountain Lion) [英] git gui not working after installing in Mac (e.g. Mountain Lion)
本文介绍了git gui在Mac中安装后无法工作(例如Mountain Lion)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行 git gui
时,我得到了这个:
$ git gui
git:'gui'不是git命令。参见'git --help'。
你是指其中之一?
grep
init
pull
push
但是我运行了其他的git命令,包括 gitk
。如何解决此问题?
谢谢。 编辑您的git config在别名部分为gui添加一个条目
$ nano $ / $ gitconfig
$ pre > [别名]
gui =!sh -c'/ usr / local / git / libexec / git-core / git-gui'
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
pull
push
But I ran other git commands fine, including gitk
. How can I fix this?
Thanks.
解决方案
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'
这篇关于git gui在Mac中安装后无法工作(例如Mountain Lion)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文