【发布时间】:2012-07-30 13:44:19
【问题描述】:
当我运行git gui 时,我得到了这个:
$ git gui
git: 'gui' is not a git command. See 'git --help'.
Did you mean one of these?
grep
init
pull
push
但我运行其他 git 命令很好,包括gitk。我该如何解决这个问题?
谢谢。
【问题讨论】:
-
对于MacPorts 用户:MacPorts 安装的
git不会发生此问题(即git gui与git配合良好,即通常由 MacPorts 在/opt/local/bin/git安装),但这个问题确实发生在/usr/bin/git。因此,如果您观察到报告的错误,那么/usr/bin/可能会出现在您环境的PATH之前/opt/local/bin中(假设后者在PATH中)。要找出答案,请运行which -a git。更新路径的方便位置是文件~/.bashrc。
标签: git