Installing git (OSX)
There are a number of methods to install git on OSX. This guide details the most common methods, in order of ease of install.
Pre-compiled Installer
Download and run git-osx-installer
Homebrew
- Install Homebrew if you haven’t already done so.
- Install Git (You may want to include Subversion support if you want to import SVN repositories. Snow Leopard already contains a copy of SVN)
$ brew install git ==> Downloading http://kernel.org/pub/software/scm/git/git-1.6.5.7.tar.bz2 ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/git/1.6.5.7 ==> make install ==> Downloading http://kernel.org/pub/software/scm/git/git-manpages-1.6.5.7.tar.bz2 ######################################################################## 100.0% /usr/local/Cellar/git/1.6.5.7: 383 files, 16M, built in 74 seconds
MacPorts
- Install MacPorts if you haven’t already done so.
- Make sure your ports are up to date.
- Install Git (You may want to include Subversion support if you want to import SVN repositories)
$ sudo port selfupdate MacPorts base version 1.600 installed Downloaded MacPorts base version 1.600 The MacPorts installation is not outdated and so was not updated selfupdate done! $ sudo port install git-core +svn ---> Installing curl 7.18.2_0 ---> Activating curl 7.18.2_0 ---> Installing openssh 5.0p1_0+darwin_9 ---> Activating openssh 5.0p1_0+darwin_9 ---> Installing p5-error 0.17012_0 ---> Activating p5-error 0.17012_0 ---> Installing popt 1.13_0 ---> Activating popt 1.13_0 ---> Installing rsync 3.0.2_0 ---> Activating rsync 3.0.2_0 ---> Installing git-core 1.5.5.3_0+doc ---> Activating git-core 1.5.5.3_0+doc
