Reputation: 1283
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?
Upvotes: 3
Views: 2490
Reputation: 1325397
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:
"Which Git? How to Keep Git Up To Date on Mac"
export PATH=/usr/local/bin:$PATH
brew install git
brew upgrade git
Upvotes: 1