Before we proceed to use git commands, First we have to install Git client on as per your OS Environment.
Install Git on Ubuntu
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git -y
$ git --version
Install Git On CentOS
$ sudo yum install git
$ git --version
Install Git on Windows
Default path of Git In windows
C:\Program Files\Git
UnInstall Git in Ubuntu
# sudo apt-get remove git
UnInstall Git in Windows
Go to below path and uninstall git from windows
Control panel –> Programs –> Uninstall Program
Related Articles:
How to Install Git on Windows 10