Updated over 11 years ago by Knödlseder Jürgen
The instructions here are adapted from http://book.git-scm.com/2_installing_git.html
$ sudo apt-get install git-core
$ sudo yum install git-core
There are several ways to install git on Mac. The easiest is to simply download the OS X installer (git-osx-installer). If you have MacPorts installed, you can also do:
$ sudo port install git-core
$ sudo apt-get install git