在Mac上安装gitk [英] Install gitk on Mac

查看:1053
本文介绍了在Mac上安装gitk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何在Mac上安装gitk?



从他们的官方网站看来,gitk带有git,但是我的git版本( git version 1.7.12.4(Apple Git-37))不包含gitk。

brew安装gitk 不适用于gitk。



版本信息(复制自评论):


  • OS X 10.8.2(12C2034)Mountain Lion
  • XCode版本4.6(4H127)

>

解决方案

正确的,1.7.12.4(Apple Git-37)没有附带gitk。您可以使用brew安装gitk附带的git的更新版本。更详细的说明位于此处: http ://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/



运行在终端执行以下命令:

  brew更新
brew安装git

如果您收到一个错误,指出它无法链接git,那么您可能需要更改它提及的文件的权限/所有者。



完成后,运行:

  type -a git 

确保显示:

  / usr / local / bin / git 

如果没有,运行:

  brew doctor 

并将路径更改为早先将/ usr / local / bin放在路径中。现在,gitk应该在你的路上(以及更新版本的git)。


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 1.7.12.4 (Apple Git-37)) does not come with gitk.

brew install gitk does not work for gitk.

Version info (copied from comments):

  • OS X 10.8.2 (12C2034) "Mountain Lion"
  • XCode Version 4.6 (4H127)

解决方案

Correct, the 1.7.12.4 (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:

type -a git

And make sure it shows:

/usr/local/bin/git

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).

这篇关于在Mac上安装gitk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆