OSX: Upgrade Preinstalled Git on OSX

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

Reference: http://michaelcrump.net/step-by-step-how-to-update-git/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s