pull/this/repo
RoundupGit, GitHub and developer tools#git#how-to#windows#macos#linux

Git download: how to install Git on Windows, Mac and Linux

By Pull This RepoPosted 4 min read

Short answer

For a Git download on Windows, get the Git for Windows installer from git-scm.com (version 2.56.1, released 10 November 2026) and keep the recommended options. On a Mac, run xcode-select --install or brew install git. On Linux, use your package manager, such as sudo apt-get install git. Then check it with git --version and set your name and email.

RoundupGit download: how to install Git on Windows, Mac and Linux

The safest Git download is the one linked from git-scm.com, the official Git site. On Windows that means the Git for Windows installer; on a Mac and on Linux you install Git with a single command instead of downloading a file. This guide walks through each system, the installer screens that matter, how to check it worked with git --version, and the two settings to make before your first commit. Everything below was checked against git-scm.com and the Git for Windows installer source on 22 November 2026.

What is the latest version of Git?

Git 2.56.1 is the latest release listed on git-scm.com, which says it was released on 10 November 2026. The matching Windows build is tagged v2.56.1.windows.1 on the git-for-windows releases page. Homebrew's git formula also listed 2.56.1 on 22 November 2026. Linux distros often ship an older version from their own repos, which is fine for most work.

How do you install Git for Windows?

Download the installer from git-scm.com and run it. The Windows page offers four files:

DownloadWhen to use it
Git for Windows/x64 Setupmost Windows PCs (the main download button)
Git for Windows/ARM64 SetupWindows on ARM laptops
x64 Portable ("thumbdrive edition")Git without running an installer, for example from a USB stick
ARM64 Portablethe same, for ARM

If you prefer a package manager, git-scm.com lists this for Command Prompt or PowerShell:

powershell
winget install --id Git.Git -e --source winget

The site warns that the Git.Git winget package and the Chocolatey git package are "not maintained by the Git for Windows project" and may lag behind the official version.

Which Git for Windows installer options should you choose?

The defaults are safe, so clicking Next through every screen works. These are the screens people stop on, with the choices as the installer names them:

  1. Select Components. Windows Explorer integration (Open Git Bash here), Git LFS and the file associations are ticked by default. "Check daily for Git for Windows updates" and "Add a Git Bash Profile to Windows Terminal" are optional extras worth ticking.
  2. Choosing the default editor. The installer itself notes Vim is the default "only for historical reasons" and recommends a modern editor. Pick Nano, Notepad, Notepad++ or Visual Studio Code if you have them.
  3. Adjusting the name of the initial branch. "Let Git decide" keeps master. "Override the default branch name" lets you type main, the common choice today. It does not affect existing repos.
  4. Adjusting your PATH environment. Keep "Git from the command line and also from 3rd-party software", marked Recommended. It makes git work in PowerShell, Command Prompt and editors like VS Code. Avoid the Unix tools option unless you know you want it; the installer warns it overrides Windows tools like find and sort.
  5. Choosing the SSH executable. "Use bundled OpenSSH" is the default and fine.
  6. Choosing HTTPS transport backend. "Use the native Windows Secure Channel library" is preselected and checks certificates against the Windows certificate stores, which also covers company root certificates. Keep it.
  7. Configuring the line ending conversions. Keep "Checkout Windows-style, commit Unix-style line endings", which the installer calls the recommended setting on Windows (core.autocrlf set to true).
  8. Terminal emulator. "Use MinTTY" is the default for Git Bash.
  9. Default behavior of git pull. Merge, Rebase or Fast-forward only. Merge is preselected on a fresh install.
  10. Credential helper. Keep Git Credential Manager. The "None" option warns that Git will then prompt for credentials on every HTTPS operation.

Finish, then open Git Bash from the Start menu or a new PowerShell window.

How do you install Git on a Mac?

Use Apple's Command Line Tools or Homebrew. git-scm.com lists three ways:

terminal
# Apple's Command Line Tools (includes Git)
xcode-select --install

# Homebrew
brew install git

# MacPorts
sudo port install git

The Pro Git book adds a shortcut: on macOS 10.9 or later, simply running git --version in Terminal prompts you to install the tools if Git is missing. Apple's build can trail the latest release, so use Homebrew if you want the newest Git. New to Homebrew? Our guide on how to install Homebrew covers it. The old standalone Mac installer stopped at version 2.33.0 in 2021 and is no longer linked from git-scm.com.

How do you install Git on Linux?

Use the package manager that ships with your distro. The commands git-scm.com lists include:

terminal
# Debian or Ubuntu
sudo apt-get install git

# Ubuntu, newest stable Git from the git-core PPA
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git

# Fedora 22 and later
sudo dnf install git

# Arch Linux
sudo pacman -S git

# openSUSE
sudo zypper install git

# Alpine
apk add git

For Red Hat Enterprise Linux and its relatives, git-scm.com notes they usually ship older Git versions and points to building from a kernel.org tarball or a third-party repository for a newer one.

How do you check that Git installed correctly?

Run this in a new terminal window:

terminal
git --version

It prints the installed version. If you see "command not found" or "not recognized", close and reopen the terminal so it picks up the new PATH, and on Windows check that you chose the recommended PATH option.

What should you set up after installing Git?

Set your name and email, because every commit records them. The Pro Git book's first-time setup:

terminal
git config --global user.name "Your Name"
git config --global user.email you@example.com
git config --global init.defaultBranch main

The init.defaultBranch setting needs Git 2.28 or later. You can also set core.editor the same way if you skipped the editor screen on Windows. To check what is set and where each value comes from:

terminal
git config --list --show-origin

--global settings live in ~/.gitconfig, which is C:\Users\<you>\.gitconfig on Windows. Settings made inside a repo without --global apply to that repo only and win over the global ones.

What is the catch?

Installing Git gives you the tool, not a GitHub account or any code. Pulling a project down is the next step, covered in how to clone a GitHub repo. Once you start using it daily, keep the Git cheat sheet open. Also, the name and email you set are recorded in every commit you make, so pick ones you are happy to see in a public history.

Want your own remote instead of GitHub? See our comparison of self-hosted Git servers.

Tracking issues as well as code? See our self-hosted Jira alternatives.

Pull it. Stash it.

Questions people ask

Where do I download Git safely?

From git-scm.com, the official Git site. Its Windows page links the Git for Windows installers hosted on the git-for-windows GitHub releases page. Its Mac and Linux pages list package manager commands instead of a download, because those systems install Git through Xcode tools, Homebrew or the distro's own packages.

Is Git free?

Yes. Git is free and open source. Homebrew lists the git formula under GPL-2.0 and several other open licences, and Git for Windows is free to download from git-scm.com. There is no paid edition of Git itself; paid plans belong to hosting services built on it.

Which PATH option should I pick in the Git for Windows installer?

Pick Git from the command line and also from 3rd-party software. The installer marks it Recommended and says it lets you use Git from Git Bash, Command Prompt, PowerShell and other programs that look for Git, without adding the optional Unix tools that would override Windows commands like find and sort.

How do I check which version of Git I have?

Open a terminal and run git --version. If Git is installed, it prints the version number. If the command is not found on Windows, reopen the terminal or reinstall with the recommended PATH option. On a Mac without Git, the same command prompts you to install Apple's Command Line Tools.

How do I update Git?

On Windows, download and run the newer installer from git-scm.com; the installer removes the previous version first and offers a Check daily for Git for Windows updates option. With Homebrew, run brew update and then brew upgrade git. On Linux, update through your package manager as usual.

Sources

  1. 1git-scm.com: Install Git on Windows (read 2026-11-22)
  2. 2git-scm.com: Install Git on macOS (read 2026-11-22)
  3. 3git-scm.com: Install Git on Linux (read 2026-11-22)
  4. 4Pro Git book: Installing Git (read 2026-11-22)
  5. 5Pro Git book: First-Time Git Setup (read 2026-11-22)
  6. 6Git for Windows installer script, install.iss (read 2026-11-22)
  7. 7Git for Windows releases (read 2026-11-22)
  8. 8Homebrew docs: FAQ, upgrading formulae (read 2026-11-22)
  9. 9Homebrew formula: git (read 2026-11-22)

Get tomorrow's repo in your feed

One free, open source repo a day as a short video, shown working, with the catch named. Pull it. Stash it.