Home » How to Install Git

How to Install Git

Installing on Linux

If you want to install the basic Git tools on Linux using a binary installer, you can usually do so using your distribution’s package management tool.

sudo dnf install git-all

Try apt if you’re using a Debian-based system like Ubuntu.

sudo apt install git-all

Installing on macOS

Git can be installed on a Mac in a various methods. Installing the Xcode Command Line Tools is probably the simplest option. On Mavericks 10.9 or later, you can do this simply by running git from the Terminal for the first time.

git --version

If the above method doesn’t work, you can install it though https://mac.github.com.

Installing on Windows

The easiest way of installing Git on Windows is downloading through https://git-scm.com/download/win. Then Install it following through the steps.

Also Read:

How to Clone a Git Repository