gitk: command not found gitk: command not found git git

gitk: command not found


I just installed the latest version of git via homebrew on macos.

11:28 $ git --versiongit version 2.25.0

It doesn't seem to have gitk and git gui so I noticed the answer for linux and tried to install the same package git-gui via homebrew and it worked.

brew install git-gui

Found the bug here.

I'm running macos 10.14.5 Mojave.


Follow these steps to fix the issue:

  1. Check git version with git --version, and it may show old version.

  2. Update Homebrew with brew update.

  3. Install the latest version of Git from Homebrew with brew install git.

    (Note that if anything went wrong with the installation, the brew doctor command can be used. In my case, it told me to use brew link git.)

I can now use gitk.


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.