Click the button below to download Git for your system automatically.
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.
Latest version: 2.40.1
Latest version: 2.40.1
brew install git
port install git
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
GitHub Desktop
A simplified GUI client for Git with seamless GitHub integration.
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.
Build from source
For those who want to build Git from source or contribute to its development.
Clone the Git repository to get the latest source code:
git clone https://github.com/git/git.git
Verify your download
Ensure the integrity and authenticity of your Git download with these verification steps.
Compare the SHA-256 checksum of your downloaded file with the official checksum.
e5d6dc4079e71c4e6bf7d8a42bf4869a5487b6fad1d2f75d9b1a93b1c5208274
a7c4e79e67e1f7db5a9dc594d58316e5c82a04c3eb172fbbc5dd986d0c3a8257
9d4235e0642e1d2fbf209c9fef0a0b8fc7dc9589a4d54fbb96d4278cb7df52fc
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.
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.
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.