Installing Git in Linux OS, Mac OS and Windows OS. The following code show how to install git on linux, mac and windows operating system.
Installing git on linux (Ubuntu):
sudo apt update
sudo apt install git
Installing Git on Mac OS:
brew install git
Or download git-scm and install it. https://git-scm.com/download/mac.
Installing Git on Windows:
Download git-scm and install it. https://git-scm.com/downloads
Check git version:
git --version