This was way harder than it needs to be, because MacOS X Lion ships with git 188.8.131.52 in /usr/bin.Â Here’s a quick sequence of steps:
- Download and install latest version from http://git-scm.com/.Â This appears to work but won’t change anything from the command line.Â The new version is installed in /usr/local/git.
- Reconfigure your path to put /usr/local/git/bin in front of /usr/bin.Â Something like this in your ~/.bash_profile:
I would highly recommend using Homebrew then it’s very easy to stay up to date with git:
That sounds good, too. I’ll give it a try. Does it update /usr/bin/git, or do I need to still make the path change?