# Installing Git
This guide should explain how to install Git for your operating system of choice. After executing all relevant steps for you OS you should end up with
a functioning installation of Git and a shell you can run the git command in.
# Windows
To install git under windows you need to download the Git for windows installer and follow the installation dialog.
(You can leave anything in its default setting for now)
Download Git for Windows Setup (64-bit) (opens new window)
After this you should have a program called "Git Bash" which you can use to execute the git command.
# Linux
Installing git in linux is pretty simple and strait forward. You install the package git with the package manager of your distribution.
After that you are able to use the git command in your shell.
# Ubuntu/Debian
sudo apt-get install git
# Arch Linux
sudo pacman -S git
# Fedora/CentOS/RHEL
sudo dnf module install git
# MacOS
As MacOS does not ship with a commandline packagemanager as linux does we need to install one. Nowadays its common to use a software called Homebrew (opens new window) for this purpose.
You can install Homebrew (opens new window) by running the following command in the Termianl app.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
When your done with that or already have homebrew installed move on with the next command and execute it in your Terminal to actually install the git command.
brew install git
← PHP Configuring Git →