gitk: command not found

纵然是瞬间 提交于 2019-12-03 05:55:39

First, check git version.

Type git --version, and it may show old version.

Next, update your Homebrew

Type brew update.

Then, download the latest version. brew install git

Note that, if it show Warning: git-2.4.0 already installed, it's just not linked

We can check brew doctor, in my case, it told me to use brew link git

Finally, type brew install git again and restart terminal.

I can use gitk and upgrade git version to the latest version.

Update

Since gitx is no longer supported for OSX 10.12, I recommend using Gitx-dev

Granted the OP is using Mac, a Linux user will find this link from Google and the accepted solution will not help.

On Linux, use your favourite package manager and install git-gui.

On RedHat-based systems, ex CentOS, do:

yum install -y git-gui

which will install the gitk dependency.

Done.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!