Sunday, January 22, 2012

Git happy - A Two-second Fix for OSX git: command not found


After downloading and installing the appropriate git dmg from http://code.google.com/p/git-osx-installer/downloads/list?can=3, add a trailing slash to the end of the git file in paths.d as follows:

sudo vi /etc/paths.d/git

so it reads like this after you're finished:

/usr/local/git/bin/

Exit the current terminal window, open a new one. You're done.
PS. You don't have to use vim if you really don't want to, but hey...

No comments:

Post a Comment