gitk: command not found

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

11:28 $ git --version
git 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.

Tags:

Git

Gitk