How to Install Git on Linux, Mac, Windows


To Work withgit version control we need to install it first .

Here's how to install git.

Linux

Install latest git on Ubuntu Linux.

# install latest git on ubuntu linux

sudo add-apt-repository ppa:git-core/ppa

sudo apt-get update

sudo apt-get install git

Make linux auto update git to latest.

# make ubuntu linux to upgrade to latest git

sudo add-apt-repository ppa:git-core/ppa

sudo apt-get update

sudo apt-get upgrade

For other versions of linux distro, see: https://git-scm.com/

Mac OS X

Just use Homebrew. https://brew.sh/.

then just brew install git

Microsoft Windows

Download it at official git homepage: https://git-scm.com/