Download
(2.30.0) - Changelog

Older releases are available and the Git source repository is on GitHub.

Windows

Git for Windows Setup
32-bit Git for Windows Setup
64-bit Git for Windows Setup

Git for Windows Portable ("Thumbdrive edition")
32-bit Git for Windows Portable
64-bit Git for Windows Portable

MacOS

There are several options for installing Git on macOS. Note that any non-source distributions are provided by third parties, and may not be up to date with the latest source release.

Homebrew
Install homebrew if you don't already have it, then:
$ brew install git

Xcode
Apple ships a binary package of Git with Xcode.

Binary installer
Tim Harper provides an installer for Git. The latest version is 2.27.0, which was released 6 months ago, on 2020-07-22.

Building from Source
If you prefer to build from source, you can find tarballs on kernel.org. > The latest version is 2.30.0.

Installing git-gui
If you would like to install git-gui and gitk, git's commit GUI and interactive history browser, you can do so using homebrew:
$ brew install git-gui

Linux

It is easiest to install Git on Linux using the preferred package manager of your Linux distribution. If you prefer to build from source, you can find tarballs on kernel.org. The latest version is 2.30.0.

Debian/Ubuntu
For the latest stable version for your release of Debian/Ubuntu
# apt-get install git

For Ubuntu, this PPA provides the latest stable upstream Git version

  1. # add-apt-repository ppa:git-core/ppa
  2. # apt update; apt install git


Fedora
# yum install git (up to Fedora 21)
# dnf install git (Fedora 22 and later)

Gentoo
# emerge --ask --verbose dev-vcs/git

Arch Linux
# pacman -S git

openSUSE
# zypper install git

Mageia
# urpmi git

Nix/NixOS
# nix-env -i git

FreeBSD
# pkg install git

Solaris 9/10/11 (OpenCSW)
# pkgutil -i git

Solaris 11 Express
# pkg install developer/versioning/git

OpenBSD
# pkg_add git

Alpine
$ apk add git

Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.
RHEL and derivatives typically ship older versions of git. You can download a tarball and build from source, or use a 3rd-party repository such as the IUS Community Project to obtain a more recent version of git.

Slitaz
$ tazpkg get-install git

Git via Git

If you already have Git installed, you can get the latest development version via Git itself:
git clone https://github.com/git/git

You can also always browse the current contents of the git repository using the web interface.