LAST UPDATED: JUNE 25, 2021
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.
- 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.
- Next, extract and launch the Git Installer and click "Yes" when asked to allow the app to make changes.
- Read the GNU General Public License and then click on "Next".
- 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".
- The Installer will then ask you to choose a credential helper. Keep it set to the default selection.
- Leave all the remaining settings to the defaults and keep clicking on "Next".
- Lastly, click on "Install" to install Git on Windows. Once done, click "Finish" to close the Installer.
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.
The following window should open up.
To run the Git GUI, search for it in the start menu and open it. A window as shown below will open up.
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.