Git is a tool and concept developed by Linux Torvalds. Git is a free and open-source distributed version control system. It has a tiny footprint with lightning-fast performance. It is a very good alternative to the SVC, SVN, or similar version control systems. It is mainly used by software developers in order to control different software versions. In this tutorial, we will learn how to install Git on Linux, Debian, Ubuntu, Mint, Kali, Fedora, CentOSi RHEL, Arch Linux, Gentoo, Windows, Windows 7, Windows 10, Windows Server 2008, Windows Server 2012, Windows Server 2016 and MacOS.
Install Git On Linux
There are different ways to install Git on Linux and its distributions but the easiest and straightforward way is installing with package managers like apt, yum, etc. They provide up to date version of the Git software.
Debian, Ubuntu, Mint, Kali:
We will use
deb based distributions. The package name will
$ sudo apt install git
rpm based distributions generally uses
yum for package management.
$ sudo yum install git
New versions of the Fedora will leave yum and start using dnf so we will use the following command in order to install Git on Fedora.
$ sudo dnf install git
$ sudo pacman -Sy git
$ sudo emerge --ask --verbose dev-vcs/git
Install Git On Windows
Git developers provide prebuild binaries for Windows versions. We will download these binaries from the following link.
After clicking download we will redirected into following URL which is git version 2.18 release files.
We have 32, 64 bit options with portable or without installation executables.
Git For Windows 32 Bit:
Git For Windows 64 Bit
Git For Windows Portable 32 Bit
Git For Windows Portable 64 Bit
Install Git On MacOS
Installing on MacOS will be a bit tricky because we need to add some repositories with the following brew commands.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor
AND then we will install with brew like below.
$ brew install git