Git installation via Homebrew does not switch by default to Homebrew

I have OS X Lion and it comes with Git version 1.7.7.5 (Apple Git -26).

Then I used Homebrew to install Git 1.7.10.1, and everything went fine.

But then, when I did git --version, it was still showing Git version 1.7.7.5.

Does anyone have this problem?

+5
source share
1 answer

Try changing the order of the path on .bashrcand put /usr/local/bin(which is used by Brew) to /usr/bin(which has git by default). He has to do the trick.

+7
source

All Articles