Git Installation
Verify
$ git --version
# If git is installed locally, you'll see something like
# git version 2.24.3 (Apple Git-128)
Installation
If you have XCode installed on Mac, Git may already be installed.
Option 1: (preferred)
If you have brew (Homebrew) installed already
$ brew install git
Option 2:
If not, download and run the installation from http://git-scm.com/download/mac
Linux
=====
$ sudo dnf install git // RPM-based distribution like Fedora, RHEL or CentOS
$ sudo yum install git // for older versions of Fedora
$ sudo apt-get install git // Debian-based distribution like Ubuntu
These are basic package management tools that comes pre-installed