Installing git - ASPP/GeoSim-Fall-School GitHub Wiki
Installing git
Contrary to the installation of the Python environment, there is no single git installation method which we advise users to follow. Any command line version of git which is reasonably new (maybe with a git --version greater than 1.7) should do.
Linux
On Linux the easiest way is to install the distribution’s git package.
Debian/Ubuntu
apt-get install git-all
(At least the packages git and gitk are needed; the metapackage git-all will take care of both of them.)
OS X
Depending on your favourite OS X package manager and OS X version, there may be several advisable ways to install git.
Pre-installed
If your version of OS X is recent enough, it may already ship with git. However, it may be that gitk is not installed. While there is a similar OS X native fork (GitX – I prefer this fork in particular: http://rowanj.github.io/gitx/), you can also use one of the other methods to get a more recent version of git and gitk.
XCode
Newer versions of XCode may also include git, hidden in the command line tools. It may be that installing XCode and then issuing the git command in Terminal.app triggers the installation automatically.
Homebrew
If you’ve used Homebrew more than once, git should have been installed automatically. In the rare case that it hasn’t:
brew update
brew install git
Macports
I haven’t been using Macports for a long time but I assume, it must be something along
port install git-core
port install gitk
Windows
Get the Windows build from http://git-scm.com