Skip to main content

Installing Git

Git is software for tracking changes in any set of files (also known as a "version control" software), usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems).

Let's see how to install Git on different platforms.


On Windows, Git can be installed via:


On Linux, Git is probably already installed in your distribution's repository. If not, you can install it via Git for Linux. You can also install it via the built-in package manager on your Linux distro.


You can install Git for your macOS computer via Git for Mac. Alternatively, it can be also be installed from the Xcode Command Line Tools by installing Xcode from the App Store, or by running this:

xcode-select --install

Using Package Managers

You can also install Git using package managers.


If you use the Chocolatey package manager, you can install Git using:

choco install git


If you use Scoop, you can install Git using:

scoop install git


If you're on macOS or Linux, you can install Git using:

brew install git