Git just announced latest version git 2.10 with several improvement. Here is how to upgrade preinstalled git on OSX to latest version.
$ git --version # git version 2.7.4 (Apple Git-66) $ brew update $ brew install git
Then modify your PATH on .bashrc or .zshrc, and put this line on the beginning of your path.
export PATH="/usr/local/bin:..another config..:" # Separate each config with ":" colon
Last step what you need to do just restart your terminal.
$ source ~/.zshrc # I'm using ZSH $ git --version # git version 2.10.0