Git for Windows app icon

Text and code editors

Git for Windows download

The standard Git distribution for Windows, bundling the git command line with Git Bash, Git GUI, Explorer integration and Git Credential Manager.

WindowsGPL-2.0-onlyUpdated

Git for Windows: the installer, its questions and your first commit

Git is the version control system behind GitHub, GitLab and almost every software project. Git for Windows is how you get it on a Windows PC. Even if you plan to use Git only through VS Code or a graphical client, those tools usually expect it to be installed.

The package includes:

  • git itself, usable from Command Prompt, PowerShell or any terminal.
  • Git Bash, a Bash shell where Git and common Unix tools behave as they do on Linux.
  • Git GUI, a basic graphical front end with a diff viewer.
  • Explorer integration, so you can right-click a folder and open Bash or the GUI there.
  • Git Credential Manager, which stores your sign-in for GitHub, Azure Repos and other hosts.

It is free and open source under the GPL.

Choosing your download

The Windows page on git-scm.com offers four files:

  • Standalone installer, x64: the usual choice for Windows on Intel or AMD.
  • Standalone installer, ARM64: for Windows on Arm devices.
  • Portable ("thumbdrive edition"), x64 or ARM64: a self-extracting archive you can unpack anywhere, with nothing installed.

No 32-bit build is offered. The page also gives winget and Chocolatey commands, with a clear note that neither package is maintained by the Git for Windows project, so they may trail the official release.

The installer's questions

The setup wizard asks a long series of questions. Accepting the defaults works, but a few pages deserve a second look:

  • Default editor. Git opens an editor for commit messages. If you have never used Vim, pick Notepad, Notepad++ or VS Code here.
  • Initial branch name. You can let Git decide or set your own, such as main.
  • PATH. The recommended option makes git available in every terminal without dragging in the Unix tools. Keep it.
  • Line endings. On Windows, the default converts to Windows line endings on checkout and back to Unix ones on commit. That suits most cross-platform projects.

Your first commit

Open Git Bash, or any terminal, and tell Git who you are. This goes into every commit:

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

Then, in a project folder:

git init
git add .
git commit -m "First commit"

To work on an existing project, use git clone followed by its address. The first push to GitHub or Azure opens a browser window from Git Credential Manager to sign you in; after that it remembers you.

Questions & answers

Is Git for Windows free?

Yes. It is open source and free to use for any purpose.

Which installer do I need?

The x64 standalone installer for most PCs, the ARM64 one for Windows on Arm, and the portable edition if you cannot install software.

What is the difference between Git Bash and Command Prompt?

Both can run git. Git Bash adds Unix commands such as ls, grep and ssh, so tutorials written for Linux work as typed.

Is this the same as GitHub Desktop?

No. GitHub Desktop is a separate graphical app. Git for Windows provides Git itself, which other tools build on.

How do I update it?

Download the new installer and run it over the old one. Your settings and repositories are left as they are.

Best for
Anyone who needs Git on a Windows PC, whether from a terminal, an editor or a graphical client.
Good to know
The installer asks many questions; the defaults are sensible, but the editor and line-ending choices are worth reading.

Tools that pair with Git

Visual Studio Code shows changes and lets you commit from the sidebar, and WinMerge is a capable side-by-side diff viewer for the times you want a bigger picture.

More free apps in Text and code editors

View category