We detected your OS: Detecting...

Click the button below to download Git for your system automatically.

If we detected your OS incorrectly, please use the manual download options below.

Download Git for Your Operating System

Get the latest version of Git tailored for your operating system. Whether you're a Windows, macOS, or Linux user, we've got you covered.

Manual Download Options

Windows

Latest version: 2.40.1

File size: ~50 MB
  • Git BASH with command line
  • Graphical Git interface
  • Windows Explorer integration

macOS

Latest version: 2.40.1

File size: ~25 MB
  • Homebrew: brew install git
  • MacPorts: port install git
  • Direct installer package
external-linux-a-family-of-open-source-unix-like-operating-systems-based-on-the-linux-kernel-logo-color-tal-revivo

Linux

Latest version: 2.40.1

Debian/Ubuntu:

sudo apt-get update
sudo apt-get install git

Fedora:

sudo dnf install git

Arch Linux:

sudo pacman -S git

openSUSE:

sudo zypper install git

Alternative Client

GitHub Desktop

A simplified GUI client for Git with seamless GitHub integration.

Latest version: 3.3.1

Available for Windows and macOS

File size: ~100 MB

Key Features:

  • Simple GUI for Git operations
  • Seamless GitHub integration
  • Visual commit history and diffs
  • Available for Windows and macOS

Note: GitHub Desktop is maintained by GitHub and provides a user-friendly interface for Git operations. It's especially useful for beginners or those who prefer a visual interface over command-line operations.

Source Code

Build from source

For those who want to build Git from source or contribute to its development.

Clone the repository

Clone the Git repository to get the latest source code:

git clone https://github.com/git/git.git

Security

Verify your download

Ensure the integrity and authenticity of your Git download with these verification steps.

Checksum Verification

Compare the SHA-256 checksum of your downloaded file with the official checksum.

Windows Installer
e5d6dc4079e71c4e6bf7d8a42bf4869a5487b6fad1d2f75d9b1a93b1c5208274
macOS Installer
a7c4e79e67e1f7db5a9dc594d58316e5c82a04c3eb172fbbc5dd986d0c3a8257
Source Code
9d4235e0642e1d2fbf209c9fef0a0b8fc7dc9589a4d54fbb96d4278cb7df52fc

Verify using PowerShell (Windows)

Run the following command in PowerShell to verify your download:

Get-FileHash -Algorithm SHA256 -Path "path\to\Git-2.40.1-64-bit.exe"

Compare the output hash with the checksum provided above.

Verify using Terminal (macOS/Linux)

Run the following command in Terminal to verify your download:

shasum -a 256 /path/to/git-2.40.1-intel-universal-mavericks.dmg

Compare the output hash with the checksum provided above.

FAQ

Frequently Asked Questions

Common questions about downloading and installing Git.

The 64-bit version is recommended for modern computers with 64-bit processors, which is most computers made after 2010. It can access more memory and may perform better for large repositories. The 32-bit version is provided for compatibility with older systems.

No, the installer will automatically update your existing Git installation. Your settings and configurations will be preserved.

For most users, the default options are recommended. These include Git Bash, Git GUI, and shell integration. Advanced users might want to customize the PATH environment and line ending conversions based on their specific needs.

Simply download and run the latest installer from this page. It will automatically update your existing installation. On macOS with Homebrew, you can run brew upgrade git. On Linux, use your distribution's package manager to update.

Check the documentation for installation guides. You can also seek help on the Git community forums or GitHub issues for specific problems.