Introduction
In this tutorial I will show you how to install GIT repository, or in other words version control system, on Windows environment.
Git is a version control system (VCS) for tracking changes in files and coordinating work on those files among multiple people. It is primarily used for software development, but it can be used to keep track of changes in any files.
Git is a free and open source distributed system designed to handle from small to very large projects with speed and efficiency.
The latest version of git is 2.27.0 but here I have shown the steps for installation of version 2.11.0. So the installation steps for even higher version would remain almost similar.
The first step is to download the Git software according to your operating system from the below URL.
Download link https://git-scm.com/download/win
The current version is Git-2.11.0-32-bit at the time of writing this tutorial.
Git Installation
Step 1. Once you download git software you will find the exe file. Do double click on Git-2.11.0-32-bit.exe file and the below window is displayed, click on Run.
Step 2. If you see “Do you want to allow the following program to make changes to the Computer?”, click on Yes.
Step 3. Next you see GNU General Public License window, please click on Next.
Step 4. Accept the default settings. If you want to change, you can do so.
Step 5. Accept the default settings.
Step 6. Accept the default settings.
Step 7. Accept the default terminal.
Step 8. Enable file system caching.
Step 9. Now click on Install.
Step 10. Wait for finishing the installation.
Step 11. Setup environment variable path to access Git commands from anywhere using cmd prompt. To setup environment path, use the following instructions:
Go to Computer -> Properties -> Advance system settings -> on Advance tab click on Environment Variables
.
Now under User variables for <username>
create Variable
and Value
as shown below.
Variable
-> Git_Home, Value
-> <git root directory>
Now edit the Variable PATH
and add the entry %Git_Home%\bin;
at the end of the PATH Value. Click Ok. Click Ok.
Step 12. Check GIT installed version in Windows from cmd prompt. Execute the command in cmd prompt: git --version
.
You will see output as git version 2.11.0.windows.1
.
Congratulations! You have successfully installed Git scm on your Windows Operating System.
Thanks for reading.