Sunday, March 15, 2015

Setting up a new mac

Git

As of early 2015, the git that comes with Xcode is woefully out-of-date (version 1.9.5), and since there was a major security issue in late December 2014, it is a good idea to update git, at least to version 2.2.1.

The problem is that the git in MacOS is part of Xcode, and apparently it's a pain to update, so the common fix is to just install git manually, then move the bin into '/usr/local/bin', and if you need to (do an export $PATH to check), then put this in your ~/.bash_profile:

  PATH="/usr/local/bin:$PATH"