使用 Homebrew 安装 Git 的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12362027/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Problems installing Git with Homebrew
提问by rsturim
Possible Duplicate:
Problems Upgrading Git with Homebrew
可能的重复:
使用 Homebrew 升级 Git 时出现问题
I'm very close here -- I think I just need to create a symbolic link, but I'm not sure how (and why this is need). I'm on OSX Lion btw.
我在这里非常接近 - 我想我只需要创建一个符号链接,但我不确定如何(以及为什么需要这样做)。顺便说一句,我在 OSX Lion 上。
I've downloaded and installed git using this command.
我已经使用此命令下载并安装了 git。
brew install git
the response is
回应是
git-1.7.12 already installed, it's just not linked
How do I do this?
我该怎么做呢?
when I run
当我跑
which git
>/usr/bin/git
when I run
当我跑
git --version
>git version 1.7.4.4
My paths are fine
我的路径很好
export PATH="/usr/local/bin:$PATH"
Again -- all I really need to know is how to set up the sym link. Thanks!
再次 - 我真正需要知道的是如何设置符号链接。谢谢!
回答by ctcherry
All you should need to do is:
您需要做的就是:
brew link git