Why is the Git version I install with Homebrew dif

2019-05-19 13:58发布

When I installed Git with Homebrew it shows as version 1.8.5.2 but on the website the download is for 2.0.1.

Why is Homebrew installing a different version of Git?

1条回答
手持菜刀,她持情操
2楼-- · 2019-05-19 14:18

Make sure the pre-installed git path (/usr/bin/git) isn't before the one installed by brew (/usr/local/bin/git).

Check if /usr/local/bin/git --version returns the expected version.
Or /usr/local/git/bin/git --version.

See more at:

查看更多
登录 后发表回答