|

How To Install Git On Windows 11 (2026)

Short answer: go to git-scm.com/download/win, download the 64-bit installer, and run it.

Or open Command Prompt or PowerShell and run winget install --id Git.Git -e --source winget.

This guide is for anyone who needs Git on a Windows 11 PC to clone code, track changes or use GitHub.

Table of Contents

Quick answer: pick an install method

MethodBest forNote from the Git site
Standalone installer (64-bit or ARM64)Most peopleThe most official build is on the Git website
Portable editionA USB drive or a PC where you cannot installCalled the thumbdrive edition
wingetCommand-line installsThe Git.Git package is not maintained by the Git for Windows project
ChocolateyPeople who already use itThe package is not maintained by the Git for Windows project

What Git for Windows includes

The Pro Git book says the most official Windows build is on the Git website, and that Git for Windows is a project separate from Git itself.

The Git for Windows site lists four parts that come with it.

PartWhat it does
Git BASHA BASH emulation for running Git from the command line
Git GUIA graphical alternative to Git BASH, with visual diff tools
Shell IntegrationAdds BASH and GUI entries to the Explorer right-click menu on a folder
Git Credential ManagerStores credentials securely for GitHub, Azure Repos and other hosts

Install Git with the standalone installer

  1. Open git-scm.com/download/win in your browser.
  2. Download the 64-bit installer, or the ARM64 one if your PC has an Arm processor.
  3. Open the downloaded file from your Downloads folder and approve the Windows prompt.
  4. Follow the installer screens through to Finish.
  5. Open a new Command Prompt or PowerShell window before you test it.

The Git site names the 64-bit file in the form Git-2.56.1-64-bit.exe and showed version 2.56.1, dated November 10, 2026, when this guide was written.

Check the Git download page for the newest version, because it changes often.

Install Git with winget

Open Command Prompt or PowerShell and run the command the Git site gives.

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

Microsoft’s winget install page explains the options in that command.

OptionWhat it does
--id Git.GitLimits the install to that package ID
-e or --exactUses the exact text and case instead of a substring search
--source wingetRestricts the search to the winget source, which avoids duplicate matches

The Git site warns that the winget package is not maintained by the Git for Windows project and might differ from the latest official version.

If that matters to you, use the installer from the Git site instead.

Use the portable edition

The Git site also offers a portable edition in 64-bit and ARM64 versions.

The download is a file whose name starts with PortableGit and ends in .7z.exe.

Most people should use the standard installer, because the Git site lists the portable edition as an alternative.

Check that Git installed correctly

  1. Open a new Command Prompt or PowerShell window.
  2. Type git --version and press Enter.
  3. Read the version number it prints.

The Git documentation says this option prints the Git suite version that the git program came from.

If Windows says git is not recognized, close the window and open a new one, because a window opened before the install does not see the change.

The PATH guide shows how to look at your PATH entries if it still fails.

Set your name and email

The Pro Git setup page says every commit uses an identity, which you set once with the --global option.

git config --global user.name "John Doe"
git config --global user.email [email protected]

Replace the sample name and address with your own.

To see all the settings Git finds, run git config --list.

Add --show-origin to see which file each value comes from, or run git config user.name to check one key.

Set the default branch name

The same page says git init uses master as the initial branch name unless you change it, and that this setting needs Git 2.28 or later.

git config --global init.defaultBranch main

Where Git keeps its settings on Windows

LevelLocation
Global.gitconfig in your user folder, usually C:\Users\<your name>
SystemC:\ProgramData\Git\config in Git for Windows 2.x or later, changed only by an administrator
Repository.git/config inside the repository, which overrides the other two

Microsoft’s Git on WSL guide notes that the Windows file is %UserProfile%\.gitconfig.

Git Credential Manager and sign-in

Microsoft says Git Credential Manager is a secure credential helper that supports multi-factor sign-in for GitHub, Azure DevOps and Bitbucket.

It stores tokens in Windows Credential Manager, so you do not need to sign in again after the first time.

Microsoft recommends Git for Windows because it includes Git Credential Manager already configured.

To see whether it is available, run git credential-manager --version, which Microsoft pairs with git --version.

Credential Manager works only with HTTP and HTTPS remotes, so SSH remotes need their own setup.

What to do next

To use Git with a hosted project, the GitHub repository guide covers creating the repository.

If you want to use Git inside Linux on Windows, the WSL install guide sets that up first.

Official downloads and notes are at git-scm.com and gitforwindows.org.

Leave a Reply

Your email address will not be published. Required fields are marked *