Installation of Git on Windows Server 2022

Installation of Git on Windows Server 2022

Git is a free and open-source distributed version control system used for tracking changes in the programming source code across different teams and revision levels. It is a well-known platform due to its distributed development model, data integrity, non-linear workflows, and speed.

In this tutorial, we are going to explore how to install Git on Windows Server 2022. Let’s start the Git installation.

Prerequisites

  1. Windows Server should be installed on your system.
  2. Administrative privileges
  3. Need Username and password to set for GitHub.
  4. Source code editor

Installation of Git on Windows Server 2022

Perform the following steps to install the Git on Windows Server 2022:

Step 1:
Download the Git setup for Windows

To install Git on Windows Server 2022, we can download the Git installation setup from the official Git website. At the time of writing this tutorial, the latest Git version 2.35.1 is available for installation. To install the latest Git version on your Windows server, click on the ‘Download for Windows’.

screenshot of git website

Now, download Git for windows setup for 64-bit system architecture.

screenshot of git website

Step 2:
Run Git installer/ setup on Windows Server 2022

Once the Git is downloaded, navigate to the download locations and double-click on the Git setup to extract and launch the Git installer.

screenshot of a git file

Read the information about GNU General Public information and click on ‘Next’ to continue the Git installation.

screenshot of git installation

Select the location where you want to install Git in the windows server. Click on the ‘Next’ option to proceed with the default location for installation.

screenshot of git installation

Select the Git components that you want to install. Continue with default components selection by clicking on the ‘Next’.

screenshot of git installation

The Git installation setup will create a start menu folder. Continue with ‘Next’.

screenshot of git installation

Choose the text editor using the drop-down, which you want to use with Gi and then click on ‘Next’.

screenshot of git installation

Now, choose the name of the initial branch. By default, this is ‘master’. Continue with default to click on ‘Next’.

screenshot of git installation

Now, you will choose the SSH secure shell client program, which you want Git to use. Leave this option as default and click on ‘Next’.

screenshot of git installation

Choose the SSL/TLS library that you want Git to use for HTTPS connections. Continue with default with the ‘Next’ option.

screenshot of git installation

Now, choose the option for line-ending conversion in Git. Again, proceed with the default selection.

screenshot of git installation

Now, select the terminal emulator that you want to use with Git bash. Use the default MinTTY and click on ‘Next’.

screenshot of git installation

Choose the behavior for the ‘git pull’ command. Continue with the default selection.

screenshot of git installation

Select the ‘Credential helper’. Again, leave this option as default and click on ‘Next’.

screenshot of git installation

Configure extra features and proceed with default settings.

screenshot of git installation

Now, click on the ‘Install’ to start the Git installation on Windows Server 2022.

screenshot of git installation

The installation of Git will take a few minutes to complete on your windows server.

screenshot of git installation

Once the Git installation is completed, click on the ‘Finish’ to exit from the setup.

screenshot of git installation

Step 3:
Launch Git on Windows Server 2022

Two modes are available to use in the Git environment. Git GUI (Graphical User Interface) and a Git bash shell.

To launch the Git GUI click on the start menu and locate ‘git gui’ using the search bar. Click on the git gui to launch it.

screenshot of git application

To launch the Git bash shell, locate ‘Git bash’ using the search bar and click on the ‘Git Bash’ icon to launch the terminal.

screenshot of git application in Start menu

Check Git version

Open the ‘Windows PowerShell’ and type the following command to check the installed Git version:

> git –version

screenshot of git command

Step 4:
Configure Git on Windows Server

After completing the Git installation, configure the username and email through the command line. Run the following command in the terminal to configure username and email:

$ git config --global user.name "samreena"

$ git config --global user.email "saam@gmail.com"

Now, verify the Git configuration by using the following command in the terminal:

$ git config –list

screenshot of git command

You can also run the above command on Windows PowerShell.

screenshot of git command

Conclusion

Congratulations! The Git installation is completed on Windows server 2022. Now, you can use it on your system. You can start using Git on your Windows system. Find the Git tutorials via the internet to explore more about the Git commands. Thanks!

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top