10 C
Texas

How to install Git on Windows 11

Hello! The arrival of Windows 11 is a recent development. For this reason, we are just getting to know its possibilities and potentialities. In fact, it is a system that allows the installation of several applications focused on increasing the productivity of the system. Well, one of these apps is Git. With it, we will be able to make a better control of the files and their source codes. Consequently, it enables a better control of the different versions. Git has been developed as a distributed and scalable revision control system. It is also integrated with a set of commands to make working in Windows 11 much more comprehensive. Git works as an open source distributed version control system. Therefore, it facilitates the management of projects of any size. Read on to learn how to install Git on Windows 11.

Git functions.

Before we go any further, let’s take a look at some Git features:

  • Frictionless context switching
  • Role-based workflow
  • Role-based lines of code

How to install Git on Windows 11

The first thing we have to do is to validate the availability of Git on the system. With this in mind, we will use a system token. To complete this, click on the search icon and enter the term CMD.

Launching a command prompt
Launching a command prompt

Once the console is displayed, please run git and verify that it is not available.

Downloading and installing Git.

- Advertisement -

The first thing you have to do is to go to the official Git page. Once there, please select the Windows version.

Downloading Git
Downloading Git

After downloading the file, you have to run it to start the installation. With this in mind, approve the system warning signal. Next, the installation process will begin. Please click Next.

Accepting the terms of the license.
Accepting the terms of the license.

In the next window, please define the path where Git will be installed.

Defining the Git installation path
Defining the Git installation path

By clicking Next, you will choose the components to use with Git. Indeed, you can create shortcuts, associate .sh or .git files, support large LFS files and more.

Choosing the elements to install together with Git
Choosing the elements to install together with Git

The wizard also allows you to set a name for the shortcut.

Setting the shortcut for Git
Setting the shortcut for Git

Configuring the installation options

Recall that Git requires an editor. Therefore, the program assigns its default editor. In fact, the software uses the editor by Vim. However, this is an editor that can be complex to use. Consequently, we will display the available options.

Next, we will select Notepad as the default Git editor in Windows 11.

Setting the editor for Git.
Setting the editor for Git.

There are certainly other editors available. However, they require additional downloads. In addition, this option can be modified at a later time. Next, we define the name of the repository. By default, in the first use, the master repository will be used. However, it is possible to set a custom name.

Setting the repository name in Git
Setting the repository name in Git

Next, it’s time to set up the ROUTE environment. The most conservative option limits the use of Git to Git Bash only. The second option allows managing these commands from Windows terminals and third-party solutions as well. Finally, Git and the optional Unix tools can be used from the command prompt. We recommend using the default option, which is the second one.

Defining the PATH environment
Defining the PATH environment

Next, define the SSH executable. Indeed, you can use the OpenSSH packaging that comes with Git. Or use an external OpenSSH. Please use the default option.

Defining the SSH executable
Defining the SSH executable

Setting Git variables

In the next window, we will define parameters related to HTTPS. In fact, you can choose the OpenSSL library. On the other hand, you can use the native Windows security library. We recommend you to use the OpenSSL library.

Setting HTTPS transport parameters
Setting HTTPS transport parameters

Now it is time to select the line ending conversion. Please select the UNIX converter. Indeed, this allows the interaction between the systems to be much more complete.

Configuring the line ending conversions
Configuring the line ending conversions

In this window, it is time to choose the terminal to use. Accordingly, we will use the MinTTY terminal for its design and versatility.

Setting up the terminal emulator
Setting up the terminal emulator

After pressing Next, it is time to configure the behavior of git pull. This is a command created to be able to manage files in a remote repository. So, we will leave it as default.

Configuring git pull behavior
Configuring git pull behavior

Now it is time to set up the credential system. We will use the system managed by Git.

Selecting the credential system
Selecting the credential system

Subsequently, we configure some extra options, such as system cache and symbolic links.

Enabling additional Git configuration options
Enabling additional Git configuration options

It is also possible to enable special functions for testing. If you are not sure what you are doing, it is better not to check the boxes. Pressing Install will start the process of installing Git on Windows 11.

Starting Git installation.
Starting Git installation.

The Git installation process will start immediately.

Running git installation
Running git installation

Checking the operation

After the installation is complete, please check the Launch Git Bash box.

Git installation completed
Git installation completed

As a result, the terminal will open:

Git Bash ready to be used.
Git Bash ready to be used.

From now on, it is possible to use Linux commands: cd, mkdir, ls.

Running some Git Bash commands
Running some Git Bash commands

Finally, we run git –version to see the version of Git used.

Checking the Git version
Checking the Git version

Okay, so we have seen how to install Git on Windows 11. So now you have this tool for development. See you soon!

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article