I installed latest version of
/usr/local/bin and change
$PATH so that new version is picked up when using shell. Can I remove old version that is in
/usr/bin directory ? I am afraid to do it because something could break in the system maybe. I am just curious about this.
There is a good answer over on Stack Overflow: How to upgrade Git to latest version on Mac OS X?
Basically, you want to use brew to install and manage your (separate) git installation and leave the one provided by Apple alone. You will obviously have to have Home Brew installed initially.
brew install git
brew upgrade git