Download for Windows
Click here to download the latest (2.42.0) 32-bit version of Git for Windows. This is the most recent maintained build. It was released about 1 month ago, on 2023-08-30.
Other Git for Windows downloads
Standalone Installer
32-bit Git for Windows Setup.
64-bit Git for Windows Setup.
Portable («thumbdrive edition»)
32-bit Git for Windows Portable.
64-bit Git for Windows Portable.
Using winget tool
Install winget tool if you don’t already have it, then type this command in command prompt or Powershell.
winget install --id Git.Git -e --source winget
The current source code release is version 2.42.0. If you want the newer version, you can build it from the source code.
Now What?
Now that you have downloaded Git, it’s time to start using it.
-
Read the Book
Dive into the Pro Git book and learn at your own pace.
-
Download a GUI
Several free and commercial GUI tools are available for the Windows platform.
-
Get Involved
A knowledgeable Git community is available to answer your questions.
How to install Git on any OS
Git can be installed on the most common operating systems like Windows, Mac, and Linux. In fact, Git comes installed by default on most Mac and Linux machines!
Checking for Git
To see if you already have Git installed, open up your terminal application.
- If you’re on a Mac, look for a command prompt application called «Terminal».
- If you’re on a Windows machine, open the windows command prompt or «Git Bash».
Once you’ve opened your terminal application, type git version
. The output will either tell you which version of Git is installed, or it will alert you that git
is an unknown command. If it’s an unknown command, read further and find out how to install Git.
Install Git Using GitHub Desktop
Installing GitHub Desktop will also install the latest version of Git if you don’t already have it. With GitHub Desktop, you get a command line version of Git with a robust GUI. Regardless of if you have Git installed or not, GitHub Desktop offers a simple collaboration tool for Git. You can learn more here.
Install Git on Windows
- Navigate to the latest Git for Windows installer and download the latest version.
- Once the installer has started, follow the instructions as provided in the Git Setup wizard screen until the installation is complete.
- Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation).
- Type
git version
to verify Git was installed.
Note: git-scm
is a popular and recommended resource for downloading Git for Windows. The advantage of downloading Git from git-scm
is that your download automatically starts with the latest version of Git included with the recommended command prompt, Git Bash
. The download source is the same Git for Windows installer as referenced in the steps above.
Install Git on Mac
Most versions of MacOS will already have Git
installed, and you can activate it through the terminal with git version
. However, if you don’t have Git installed for whatever reason, you can install the latest version of Git using one of several popular methods as listed below:
Install Git From an Installer
- Navigate to the latest macOS Git Installer and download the latest version.
- Once the installer has started, follow the instructions as provided until the installation is complete.
- Open the command prompt «terminal» and type
git version
to verify Git was installed.
Note: git-scm
is a popular and recommended resource for downloading Git on a Mac. The advantage of downloading Git from git-scm
is that your download automatically starts with the latest version of Git. The download source is the same macOS Git Installer as referenced in the steps above.
Install Git from Homebrew
Homebrew is a popular package manager for macOS. If you already have Homwbrew installed, you can follow the below steps to install Git:
- Open up a terminal window and install Git using the following command:
brew install git
. - Once the command output has completed, you can verify the installation by typing:
git version
.
Install Git on Linux
Fun fact: Git was originally developed to version the Linux operating system! So, it only makes sense that it is easy to configure to run on Linux.
You can install Git
on Linux through the package management tool that comes with your distribution.
Debian/Ubuntu
- Git packages are available using
apt
. - It’s a good idea to make sure you’re running the latest version. To do so, Navigate to your command prompt shell and run the following command to make sure everything is up-to-date:
sudo apt-get update
. - To install Git, run the following command:
sudo apt-get install git-all
. - Once the command output has completed, you can verify the installation by typing:
git version
.
Fedora
- Git packages are available using
dnf
. - To install Git, navigate to your command prompt shell and run the following command:
sudo dnf install git-all
. - Once the command output has completed, you can verify the installation by typing:
git version
.
Note: You can download the proper Git versions and read more about how to install on specific Linux systems, like installing Git on Ubuntu or Fedora, in git-scm’s documentation.
Other Methods of Installing Git
Looking to install Git via the source code? Learn more here.
Contribute to this article on GitHub.
Get started with git and GitHub
Review code, manage projects, and build software alongside 40 million developers.
Sign up for GitHub
Sign in
To start using Git, you’ll first need to download Git for your operating system. In this article, we’ll cover how to download Git for Windows, Mac, and Linux. You’ll also learn how to configure Git with your identity so you can start working on your first Git project.
Download Git for Your Operating System
Download Git for Windows
Download Git for Mac
Install Git for Linux
Configure Git with Your Identity
Git Download FAQs
Key Terms & Resources
Git is a distributed version control system (VCS) created by Linus Torvalds in 2005. Git is used to track changes made to files in a project and allows users to revert to previous versions of their project. Git has quickly become the most popular version control system because of its distributed model, branching, speed, and more.
Git SCM – This is Git’s official website. This resource provides content about what Git is, documentation regarding how to use Git, and ways to connect and network with the Git community.
The Pro Git Book – Often simply referred to as “The Git Book”, this contains explanations for Git’s commands and functionality. The Git Book is extremely detailed and is written in technical language, so beginners may find its material somewhat confusing. The content in the Git Book becomes easier to understand as you get hands on experience with Git, but it is important to know that the Git Book exists, as we will use it to configure Git on your machine after your Git download.
Edward Thomson’s talk at the GitKon Git conference provides additional information about the progression of version control and the history of Git.
Want to try working with Git before downloading it? You can do just that with GitKraken Client! Run Git commands, experiment with the CLI, and get a feel for a Git workflow without ever having to download Git.
How to Download Git for Windows
To download Git for Windows, you’ll first need to navigate to the Git download for Windows page on Git SCM. Next, you’ll need to find out if your machine is 32 or 64-bit. To determine whether your machine is 32 or 64-bit, simply type 32 or 64 bit
into the Start menu (usually found on the bottom left of your screen) and hit enter.
This will open an About menu on your computer and show if your machine is 32 or 64-bit. Next, select the option that matches your system–32-bit Git for Windows Setup or 64-bit Git for Windows Setup–to begin the Git download for Windows process.
Git Download for Windows Setup
As Git begins to download, you will be met with several setup options that appear automatically. For most of the setup options, you can simply accept the default settings, with one exception.
Select Next through the initial setup options until you get to the option titled Adjusting the name of the initial branch in new repositories.
From here, select the option that reads Override the default branch name for new repositories and type main
in the text box just below.
This makes it so any time you create a new repository, your initial Git branch will be called main
instead of master
. Changing your default branch name to main is an accepted tech industry standard. Take a look at this article for more information about the change from master to main.
From here, you can continue to accept the default setup by selecting Next through the remainder of the options. You’ll know that you’ve come to an end to the setup options when you are presented with an option to Install.
Select Install and a status bar will appear showing the progress of your Git download. Completing your Git download for Windows can take anywhere from 1-5 minutes depending on your Internet connection. Once the Git download status bar is filled, you should have Git downloaded for Windows on your computer.
Verify your Git Download for Windows
To double check that Git has been properly downloaded to your machine, navigate to a terminal, such as the GitKraken CLI, and run git –version
. Your terminal should return this message: git version #.##.#
.
Congratulations! Now that your Git download for Windows is complete, jump to the bottom of this article for a guide to configuring Git and tips for accelerating your Git knowledge.
How to Download Git for Mac
To download Git for Mac on your Apple Machine, navigate to the MacOS Git Download page on Git SCM. You will first need to install Homebrew before you can download Git for Mac. Homebrew is a package manager that makes it easy to install and update software packages. To install Homebrew, select the Homebrew link at the top of the Git SCM page. Now, from the Homebrew page, copy the string of code found just beneath the title, Install Homebrew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Next, navigate to your terminal of choice and paste the code you copied from the Homebrew page. This will automatically start installing Homebrew on your machine.
Depending on your computer settings, you may have to enter your computer password before Homebrew installs. You’ll know that Homebrew has installed when the following message is returned in your terminal: Installations successful.
Download Git for Mac with Homebrew
Once Homebrew is installed, navigate back to the MacOS Git download page on Git SCM. From here, copy the code found just beneath the Homebrew title: $ brew install git
. Paste that code into your terminal and hit return; this will begin your Git download for Mac.
Once your Git download is complete, the terminal will return a message that looks like the following: Summary 🍺 /usr/local/Cellar/git/#.##.#.
. This is simply a download summary that Homebrew provides that tells you that your Git download was successful, and shows you the location of your Git download on your machine.
Verify your Git Download for Mac
To double check that Git has been properly downloaded to your machine, navigate to a terminal and run git –version
. Your terminal should return this message: git version #.##.#
.
Congratulations! Now that your Git download for Mac is complete, jump to the bottom of this article for a guide to configuring Git and tips for advancing your knowledge of Git.
How to Install Git for Linux
Installing Git on Linux is quite simple. In fact, many Linux systems already have Git installed by default.
To confirm whether or not your computer already has Git downloaded, open a terminal and type: git –version
. If Git is already installed, your terminal will return something like: git version 2.36.1
. If your machine doesn’t have Git installed, the terminal will return an error message.
The easiest way to download Git on your Linux system is to use the preferred package manager of your particular distribution. While the specific commands to download Git on Linux systems are different, the process for downloading Git is very similar.
First, update your package list, and then download the most recent version of Git supported by your system. Let’s take a look at what that looks like for the most popular Linux distributions.
How to Install Git on Ubuntu / Debian
To install Git for Ubuntu, run these commands from your terminal:
Update System Package List:
sudo apt-get update
Installing Git in Ubuntu / Debian:
apt-get install git
Install Git on Fedora
To install Git on Fedora, run these commands from your terminal:
Update System Package List:
sudo dnf -y update
Install Git on Fedora:
sudo dnf -y install git
Gentoo Install Git
To install Git on Gentoo, run these commands from your terminal:
Update System Package List:
emerge -avDuN world
Install Git on Gentoo:
emerge --ask --verbose dev-vcs/git
Install Git on Arch Linux
To install Git on Arch Linux, run these commands from your terminal:
Update System Package List:
sudo pacman --sync --refresh --sysupgrade
Install Git on Arch Linux:
pacman -S git
Confirm your Git Installation on Linux
Once you’ve run the code specific to your package manager to download Git on Linux, you’ll want to confirm that your Git installation on Linux was successful. To make sure Git has been properly downloaded on your machine, navigate to a terminal and type: git –version
. Your terminal should return this message: git version #.##.#
Configure Git for your Operating System
Before you start using Git to track your projects, you’ll need to configure your identity. You must configure your identity because, as the Pro Git Book states, “every Git commit uses this information, and it’s immutably baked into the commits you start creating”. To configure your identity, you’ll need to open a terminal and run the following commands:
Configure your Username:
git config --global user.name "Your Name"
Configure your Email:
git config --global user.email [email protected]
Configure your Default Branch Name to Main (Mac and Linux only):
git config
--
global init.defaultBranch main
You can verify that you have configured Git properly by running git config –list
. If configured correctly, the terminal will return your username, email, and default branch name as you entered them above.
Git Download FAQs
Q: How to Download From Git
A: Git is software that runs locally on your machine once you download Git. Select your operating system at the top of this article to download Git for Windows, Mac, or Linux.
Q: How to Download With Git
A: Git can be downloaded from the official Git site, Git SCM.
Git can have a steep learning curve. Complete with autosuggest and autocomplete Git commands, visual commit graph, integrated terminal, and more, GitKraken Client makes Git easier and more intuitive.
Accelerate Your Progress with GitKraken’s Learn Git Resources
Now that you have Git downloaded and configured, you can start working on your first Git project! As you work with Git and get involved in contributing to projects, you’ll discover a vibrant community of developers, academics, gamers, geniuses, and everything in between.
If you want to accelerate your progress so you can start making meaningful contributions at your job or open source projects, take a look at GitKraken’s Learn Git resources. Complete with Git tutorials, definitions, best practices, and more, GitKraken’s Learn Git library is completely free and is sure to help you take your Git skills to the next level.
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
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 for Windows is the Windows port of Git, a fast, scalable, distributed revision control system with a rich command set. Git for Windows brings the full feature set of the Git SCM to Windows while providing new and appropriate user interfaces. It’s ideal for both experienced Git users and novices alike.
Features
- BASH emulation used to run Git from the command line
- Git GUI
- Shell integration
License
GNU Library or Lesser General Public License version 2.0 (LGPLv2)
Laboratory Information System
CGM LABDAQ empowers labs of all sizes to optimize revenue and improve customer retention by increasing efficiency and streamlining workflow
CGM LABDAQ® from CompuGroup Medical is an advanced laboratory information system (LIS) that leverages a modern platform with decades of experience as the market-leading LIS.
User Ratings
5.0
out of 5 stars
★★★★★
★★★★
★★★
★★
★
ease
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
5 / 5
features
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
5 / 5
design
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
5 / 5
support
1 of 5
2 of 5
3 of 5
4 of 5
5 of 5
5 / 5
User Reviews
- All
- ★★★★★
- ★★★★
- ★★★
- ★★
- ★
-
Probably a life saver for the windows users out there. Git is used by every developer out there and I think windows should now give the git feature in CMD or Power shell. But till that this is the only way possible for the beginners to use git or you can install git via WSL.
This is fast, lightweight, GUI has pretty much everything. So for me its a 5/5.
Read more reviews >
Additional Project Details
Operating Systems
Windows