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
- What Git for Windows includes
- Install Git with the standalone installer
- Install Git with winget
- Use the portable edition
- Check that Git installed correctly
- Set your name and email
- Set the default branch name
- Where Git keeps its settings on Windows
- Git Credential Manager and sign-in
- What to do next
- More Windows guides
Quick answer: pick an install method
| Method | Best for | Note from the Git site |
|---|---|---|
| Standalone installer (64-bit or ARM64) | Most people | The most official build is on the Git website |
| Portable edition | A USB drive or a PC where you cannot install | Called the thumbdrive edition |
| winget | Command-line installs | The Git.Git package is not maintained by the Git for Windows project |
| Chocolatey | People who already use it | The 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.
| Part | What it does |
|---|---|
| Git BASH | A BASH emulation for running Git from the command line |
| Git GUI | A graphical alternative to Git BASH, with visual diff tools |
| Shell Integration | Adds BASH and GUI entries to the Explorer right-click menu on a folder |
| Git Credential Manager | Stores credentials securely for GitHub, Azure Repos and other hosts |
Install Git with the standalone installer
- Open git-scm.com/download/win in your browser.
- Download the 64-bit installer, or the ARM64 one if your PC has an Arm processor.
- Open the downloaded file from your Downloads folder and approve the Windows prompt.
- Follow the installer screens through to Finish.
- 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.
| Option | What it does |
|---|---|
--id Git.Git | Limits the install to that package ID |
-e or --exact | Uses the exact text and case instead of a substring search |
--source winget | Restricts 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
- Open a new Command Prompt or PowerShell window.
- Type
git --versionand press Enter. - 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
| Level | Location |
|---|---|
| Global | .gitconfig in your user folder, usually C:\Users\<your name> |
| System | C:\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.
More Windows guides
- How To Install WSL (Linux On Windows) In Windows 11 (2026)
- How To Download And Install ADB On Windows (2026)
- How To Install Fonts In Windows 11 (2026)
- How To Install .NET Framework 3.5 On Windows 11 (2026)
- How To Uninstall ESET From Windows Step By Step (2026)
- How To Uninstall Kaspersky Completely From Windows (2026)
See all: Windows 11 Guides