+5 votes
78 views
in Tips & Tricks by (242k points)
reopened
Install and set up Git on Windows

1 Answer

+3 votes
by (1.6m points)
 
Best answer

How to install Git on Windows
1st step:
2nd step:
3rd step:
4th step:
5th step:
6th step:
7th step:
8th step:
9th step:
10th step:
11th step:
12th step:
13th step:
14th step:
15th step:
16th step:
17th Step:
18th Step:
How to set up your GitHub account with Git
Quick start guide: Install Git

Git is widely used open source software for distributed version control of software. Read here how the tool works under Windows..

image image

Git is a version control system that was created by Linux inventor Linus Torvalds. To work with Git, you need the program of the same name - which is also available for Windows. You can then use a Git client to upload and manage your software code on platforms such as GitHub or GitLab. In this tipps + tricks article, we explain how to install and set up Git on Windows.

How to install Git on Windows

Follow our step-by-step instructions or take a look at the brief instructions .

1st step:

image
Open the download page from the official Git website at https://git-scm.com/download/win . Depending on your system architecture, select either the 32-bit or 64-bit version to download. We choose "64-bit Git for Windows Setup". When asked, click on " Save file ".

2nd step:

image
Navigate to the Download - location . Double click on the file to start the installer.

3rd step:

image
Allow the app to make changes to your device by clicking on " Run click". In the subsequent "User Account Control" dialog box, click " Yes " to start the installation.

4th step:

image
Check the GNU General Public License and click " Next ".

5th step:

image
The installation program gives you the option of changing the installation location via " Browse ". We leave it at the default setting and click " Next " again.

6th step:

image
In the next step you can select components . Leave the default settings including Git Bash and Git GUI. Now click on " Next " again.

7th step:

image
The installation wizard offers you to create a start menu folder . Click on " Next " again to confirm .

8th step:

image
Choose a text editor to use with Git. We recommend Notepad ++ for beginners . Click on " Next " again.

9th step:

image
This installation step allows you to change the initial branch in the new repository. Leave it to the standard " Let Git decide " if your team has not defined any other branches. You can continue with " Next ".

10th step:

image
You can now change the PATH environment . Again, you should leave the middle (recommended) selection and click " Next ".

11th step:

image
The next option relates to libraries for HTTPS connections - that is, the server certificates. Use the default setting " Use the OpenSSL library ". If you work in an Active Directory environment, you may have to resort to the second option. Go to the next step with " Next ".

12th step:

image
Here you can define how Git handles line endings . Go back to the default setting and click " Next ".

13th step:

image
You can now choose which Terminal Emulator you are using. Because of the features we choose the standard " MinTTY " again. Click on " Next " one more time .

14th step:

image
Leave the default behavior of git pull in the default setting. Go to the next step with " Next ".

15th step:

image
Select the first option and click " Next ".

16th step:

image
The default options are recommended. If you are using symbolic links, check the second box as well. Click on " Next " again.

17th Step:

image
If you want to use pseudo-terminals like Node or Python in the Git-Bash window, activate this experimental function. " Install " now continues with the installation.

18th Step:

image
When the installation is complete, select the check boxes to view the release notes or start Git Bash. Finally click on " Finish ".

How to set up your GitHub account with Git

Open a terminal with Git Bash and enter the following commands to use your GitHub account:

git config --global user.name "github_username"
git config --global user.email "email_address"

image

If you want to clone a repository (e.g. download it locally to your PC), enter the following command: All other commands can be found in the detailed documentation at https://git-scm.com/docs .
git clone my_project.git

Quick start guide: Install Git

  1. Open the download page from the official Git website at https://git-scm.com/download/win .
  2. Download the appropriate version. Either 32 bit or 64 bit.
  3. Navigate to the storage location and double-click the file.
  4. Confirm any user account control prompts with " Yes " or " Execute ".
  5. Read the GNU General Public License and click " Next ".
  6. You can optionally change the installation path via " Browse ". Click on " Next " again.
  7. Create a suitable start menu folder and select " Next " again.
  8. Now select a desired text editor - we recommend Notepad ++.
  9. We recommend leaving the default settings in all of the following steps. Click " Next " through the installation.
  10. Once you have reached the step of the experimental features , you can install them if necessary.
  11. The installation now starts with " Install ".
  12. After completing the installation, activate the desired ones and close them by clicking on " Finish ".

...