Skip to content

Installation of Git

Let’s see how to install Git on your computers. No matter what Operating System you re using, here are the guides.

Here are three easy ways to get Git on your Mac.

If you’ve already installed Xcode, then you installed Git at the same time. If you haven’t installed Xcode, just open App Store and get it.

Install homebrew if you don’t have it, then run the command below in terminal:

macOS Terminal
brew install git

Install homebrew if you don’t have it, then run the command below in terminal:

macOS Terminal
sudo port install git

Install winget tool if you don’t have it, then run the command in cmd or Powershell:

CMD or Powershell
winget install --id Git.Git -e --source winget

Download the windows standalone installer at git-scm.com, then just install it like any other windows app.

Download Link: https://git-scm.com/downloads/win

For the latest stable version for your release of Debian/Ubuntu, run the command in terminal:

Linux Terminal
apt-get install git

Up to Fedora 21, run the command in terminal:

Linux Terminal
yum install git

For Fedora 22 and later, run the command in terminal:

Linux Terminal
dnf install git

Run the command in terminal:

Linux Terminal
dnf install git

Run the command in terminal:

Linux Terminal
zipper install git

Run the command in terminal:

Linux Terminal
pkg install git
Section titled “Install Git on RHEL(or any closely-related RPM-based distribution, such as CentOS)”
Linux Terminal
dnf install git