GIT Tutorial: Installation

How to install GIT on Linux or Mac

On Linux you can compile the system from source or use commands like the following ones:

apt-get install git-core


yum install git-core

It depends on your distribution.

The easiest way to install GIT on Mac OS is to use the MacPorts software ( and to run the following command:

sudo port install git-core

If you want to use GIT on your Windows machine, check out our tutorial on how to install git in Windows.

SiteGround is not affiliated with or endorsed by the Git Project. Git is a member project of Software Freedom Conservancy.