Essential Guide

Browse Sections

BACKGROUND IMAGE: deepagopi2011/

This content is part of the Essential Guide: Master Git basics and branch into DVCS
News Stay informed about the latest enterprise technology news and product updates.

Step-by-step guide: How to install Git on Windows desktop computers

As distributed version control systems continue to supplant centralized systems like Subversion and CVS, more and more developers have made the move toward SaaS-based version control platforms such as GitHub, GitLab and BitBucket. Of course, these are all Git based systems, which means developers must first locally install Git on Windows or Linux computers to interact with them.

In this Git tutorial, we will demonstrate how to install Git on Windows. We will then use the five basic Git commands every developer should know to verify that the DVCS tool was installed successfully.

How to install Git on Windows in 10 easy steps:

Here are the steps to follow to install Git on Windows:

1. Download the executable Git file from
2. Run the installation file with Administrator rights
3. Choose an appropriate installation location such as C:\_tools\git
4. Install the default components, including Git GUI Here and Git Bash Here
5. Choose your preferred Git default editor. We recommend Notepad++.
6. Allow Git to be added to the Windows PATH
7. Accept the default line ending conversion for Unix and Windows compatibility
8. Chose the extra option to enable system caching
9. Click Finish to complete the install.
10. Choose to open a Git Bash shell and start using Git!

Windows Git install

Step by step Windows Git installation

Test the Windows Git install

You can test the veracity of your Windows Git install by issuing the five basic Git commands every developer should know. Those basic Git commands are:

  1. init
  2. add
  3. config
  4. status
  5. commit

Before you run Git init, first create a new folder named repos off the C:\ drive:

windows@install-git MINGW64 /c/repos
$ git init
Initialized empty Git repository in C:/repos/.git/

In the newly created folder, add a file named windows-git-install.txt:

windows@install-git MINGW64 /c/repos
$ touch windows-git-install.txt

Then add the file to the Git index:

windows@install-git MINGW64 /c/repos
$ git add .

Configure the Git user’s email address and username:

windows@install-git MINGW64 /c/repos
$ git config --global "Cameron McKenzie"
windows@install-git MINGW64 /c/repos
$ git config --global ""

Commit the new file to the new Git repository:

windows@install-git MINGW64 /c/repos
$ git commit -m "New Windows git install commit"
[master (root-commit) 5b8f1f4] New Windows git install commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 windows-git-install.txt

And finally, check the status of the newly installed Git repo:

windows@install-git MINGW64 /c/repos
$ git status
On branch master
nothing to commit, working tree clean

Windows Git test

How to verify a Windows Git installation



















Thus concludes the task to install Git on Windows, and ensure that the DVCS tool is properly configured to manage source code and interact with SaaS-based tools such as GitHub, GitLab and BitBucket.

Basic Git commands

How to run five basic Git commands

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.