Mingyu Mingyu - 1 year ago 3355
Git Question

Install gitk on Mac

Does anyone know how to install gitk on Mac?

From their official website, it seems gitk comes with git, but the version of my git (

git version (Apple Git-37)
) does not come with gitk.

brew install gitk
does not work for gitk.

Answer Source

Correct, the (Apple Git-37) does not come with gitk. You can install a more recent version of git which comes with gitk by using brew. More thorough instructions located here: http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

Run the following commands at the terminal:

brew update
brew install git

If you get an error indicating it could not link git, then you may need to change permissions/owners of the files it mentions.

Once completed, run:

which git

And make sure it shows:


If it does not, run:

brew doctor

And make the path change to put /usr/local/bin earlier in the path. Now, gitk should be on your path (along with an updated version of git).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download