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/

If you have a question, put $5 at patreon and message me.

git

  1. Install git
  2. Git Basics
  3. Git Ignore File
  4. Commit Files
  5. Push to Server
  6. Pull from Server
  7. Find Difference
  8. View Log
  9. Revert Change
  10. Branching
  11. Temp Save: git stash
  12. What's HEAD
  13. FAQ