Git: Install on {Linux, Mac, Windows}

By Xah Lee. Date: . Last updated: .

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. http://brew.sh/.

then just brew install git

Microsoft Windows

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