Signup/Sign In

Installing Git on Windows

In this tutorial, we will learn how to install Git on Windows. Installing Git on Windows is a slightly longer process as compared to other OS like Linux. In this article, we will give you a step-by-step guide on how to install Git on Windows and you will be all set to start using Git for version control.

  1. Go to the downloads page on the official Git website, https://git-scm.com/downloads. The page will show you the most recent version that is available for download. Just click the download button and the Git Installer will start downloading.Download Git
  2. Next, extract and launch the Git Installer and click "Yes" when asked to allow the app to make changes.Allow App to make changes to device
  3. Read the GNU General Public License and then click on "Next".GNU General Public License
  4. Next, the Installer will ask you the default name of the initial branch. For now, keep it set to "Let Git Decide". This will always set the name of the initial branch to "master".Adjusting the name of the initial branch in new repositories
  5. The Installer will then ask you to choose a credential helper. Keep it set to the default selection.Choose a credential helper
  6. Leave all the remaining settings to the defaults and keep clicking on "Next".
  7. Lastly, click on "Install" to install Git on Windows. Once done, click "Finish" to close the Installer.Complete the installation by clicking on Finish

Running Git on Windows

There are two ways to run Git on Windows, via the command line or by using the Git GUI. GUI stands for Graphical User Interface and Git GUI provides an easier and more interactive way to work with Git as compared to the command line.

To run Git from the Command Line go to the start menu and search and open the Git Bash app.

Git Bash App in start menu

The following window should open up.

Git Bash app

To run the Git GUI, search for it in the start menu and open it. A window as shown below will open up.

Git GUI app

Summary

Congrats on successfully installing Git on your PC. You are now all set to start using Git to manage your projects. In the next article, we will learn how to create a Git Repository. I hope this article was helpful and you learned something new.



About the author:
I like writing content about C/C++, DBMS, Java, Docker, general How-tos, Linux, PHP, Java, Go lang, Cloud, and Web development. I have 10 years of diverse experience in software development. Founder @ Studytonight