Download and Run Git on Windows Server 2022

This guide wants to teach you to Download the Latest Git, Install, and Run it on Windows Server 2022. Git is a free and open-source version control system that can be used to handle small and big projects. Now you can follow the below guide steps to install and run the latest Git on Windows Server 2022.

Complete Guide To Download and Run Git on Windows Server 2022

Before you start your Git installation, you must have access to your Windows Server with administrative privileges and follow the steps below.

Step 1 – Download Latest Git Version For Windows

First, visit the Official Git Downloads Page and click on Windows.

Download Latest Git Version For Windows

Then, click on the latest Git version for Windows 64-bit. If you want to use Windows 32-bit you can click on 32-bit version setup.

Get Git for Windows

Step 2 – Run Git Windows Installer

Once your download is completed, navigate to your Git downloaded folder and double-click on your file to open your Git setup installer.

Run Git Windows Installer

Step 3 – Start Git Installation Setup on Windows Server 2022

At this point, you will see your Git setup wizard. Read the terms and conditions on the first screen and click Next.

Terms and Conditions for Git Setup

Then, you need to select the destination location for your Git installation. You can choose your desired path or accept the default and click Next.

Select Git Destination location

Now you need to select the Git components you want to install. Accept the default components and click Next.

Install Git components on Windows server 2022

The Git setup will create a start menu folder on Windows Server 2022, click Next to continue.

Create Git start menu folder

At this point, you must select the default text editor for Git. You can choose the Vim by default and click Next.

Git default text editor

Then, you must adjust the name of the initial branch in new repositories. The default name is master, you can select it and click Next.

Adjust Git initial branch name on Windows server 2022

On the next screen, you must adjust the environment path. Select the recommended one and click Next.

Adjust Git environment path

Now you must choose the SSH executable for Git. You can leave it by default as Bundled OpenSSH and click Next.

choose the SSH executable for Git

Next, select the OpenSSH library for HTTPs connections and click Next.

OpenSSH library for HTTPs connections for Git

At this point, you must configure the line-ending conversion for Git. Accept the default option and click Next.

configure the line-ending conversion for Git

Next, you need to select the terminal emulator for Git Bash. You can choose the default one as MinTTY and click Next.

select the terminal emulator for Git Bash on Windows Server 2022

Select the git pull command behavior as fast forward or merge and click Next.

git pull command behavior

Now select the Git credential manager and click Next.

Git credential manager

Enable file system caching for Git and click Next.

Enable file system caching for Git

Finally, you can start your Git installation on Windows Server 2022. Simply click on Install.

Git installation on Windows server 2022

The installation process may take some time to complete.

When it is completed, click on Finish.

Complete git setup wizard

Step 3 – Launch Git GUI and Git Bash Shell on Windows Server 2022

As you may know, Git has two modes available. One is Git GUI which is the graphical user interface and another one is Git Bash shell command line interface. To launch them, follow the steps below.

To access Git GUI, from your search bar, search for the Git GUI and click on it to open the app.

Launch Git GUI App

Once you launched the app, you will see:

Git GUI App on Windows server 2022

From there, you can create a new repository, clone an existing repository, and open an existing repository.

To access Git Shell bash on Windows Server 2022, from your search bar, search for Git Bash and click on it to open.

Launch Git Bash Shell

You will your Git bash terminal. You can verify your Git version by typing the following command:

git --version
Git Terminal shell

Step 4 – Git Initial Configuration on Windows Server 2022

At this point, you can complete your Git setup by creating a username and email for Git. To do this, from your Git bash terminal, run the following commands:

# git config --global user.name "orca"
# git config --global user.email "[email protected]"
Git Initial Configuration Windows server 2022

Also, you can verify your Git configuration by typing the following command:

git config -l

In your output, you will see:

Verify Git Configuration

Note: You can also run the Git command in Windows PowerShell.

That’s it, you are done.

Conclusion

At this point, you have learned to Download the latest Git version from the official website, run your Git Windows installer, install Git on Windows Server 2022, and do the Git initial configuration. Hope you enjoy it.

Also, you may like the following articles:

Install Git on Windows 11

Disable and Enable Superfetch on Windows

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!