Problems upgrading Git with Homebrew

落爺英雄遲暮 提交于 2019-12-01 15:30:58

问题


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 downloaded and installed git using this command:

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


回答1:


By using the link subcommand:

brew link git


来源:https://stackoverflow.com/questions/12362021/problems-upgrading-git-with-homebrew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!