Just download the original git package. The installer will install git under /usr/local/git
(you need to deactivate security options to run the installer).
There is a preinstalled git wrapper in /usr/bin
used by Xcode which does not work without installing Xcode. You need to run /usr/local/git/bin/git
explicit or change the PATH variable to contain /usr/local/git/bin
before /usr/bin
!
Create/edit your ~/.bashrcprofile
with the following:
PATH=/usr/local/git/bin:$PATH
export PATH