Install and Configure Git on Windows
In our last articles, you read about version control, introduction to Git, and why Git is important to your organization. We hope you all get the idea about Git. To start using Git you need to first install it. For the installation of Git, we are writing down step by step method to install and configure it.
Steps to Install & Configure Git are:
Step 1. Download the latest Window Git Installer from the link https://git-for-windows.github.io/
Step 2. Install the Git using its executable file
Step 3. After installing Git on your computer, you need to set the environment variables so that you can use the “Git” command in any drive or directory through the command prompt.
Step 4. Right-click on “My Computer” or “This PC”, select “Properties”, and then click on “Environment Variables”
Step 5. Select “Path”, click on “Edit”, and add the below-given paths to it.
C:\Program Files\Git\bin\git.exe C:\Program Files\Git\cmd
Step 6. Now open the command prompt or Git Bash if during installation you elected not to use Git from the Windows Command Prompt.
Step 7. Reopen the command prompt and execute the “Git” command to check whether Git is working properly now.
Step 8. Execute below-given commands to configure your Git Username and Email.
git config --global user.name "Qualitians Group" git config --global user.email "[email protected]"
Note: Replace “Qualitians Group” and “[email protected]” with your name and email address because these details will be associated with the commits which you will make.