6 C
Texas

How to Install Git on Windows 10.

Let’s talk a little bit about Git. This is a tool that performs a version control function on code in a distributed fashion. In other words, it’s an application that allows you to keep track of the versions, fixes, and modifications you’re working on in a project. This form of version control is very useful for teamwork. Likewise, if a project has a large number of files, this tool helps to have better control over them. The version control system helps to record changes made to the code. Furthermore, it records who made the changes and can restore deleted or modified code. In addition, there is no overwritten code because Git keeps multiple copies in the repository. Well, in this post we’re going to see how to install Git on Windows 10.

Downloading Git.

The first thing we have to do is go to the official website of the project and download the latest version.

Download Git 2.18.0

Git installation.

After downloading, just run the installer. In the first window, you accept the license and proceed with the installation.

Please accept the license.
Please accept the license.

Then select the installation directory.

Choose the installation directory
- Advertisement -

Then select some settings to install. I recommend you not to modify anything and continue with the installation.

Select some components to install.
Select some components to install.

The wizard offers to create a shortcut in the Start Menu.

Assign the name to the shortcut.
Assign the name to the shortcut.

Setting Up the Git Installation Parameters in Windows 10

In the next window, select the editor. It is important to realize, that the wizard itself does not recommend using the program’s default editor. Consequently, it is possible to select another one from the list. In my case, I chose Notepad ++ as it is very intuitive and comfortable to use. However, the user can select any of them.

Select the Git editor.
Select the Git editor.

In the next window, select the PATH environment. We recommend using Git as a command line so you can use git bash to launch commands from Git itself. So, leave the default option and continue with the process.

Select the PATH environment
Select the PATH environment

Next, select the SSL/TLS library that Git will use to manage the HTTPS connections. The options are OpenSSL and Windows Secure Channel library. Make your selection according to your needs. Select OpenSSL as the transport layer. On the other hand, if you want to manage the certificates through the Active Directory Domain Services. So you need to select the native Windows library.

Choose the library for the HTTPS connections.
Choose the library for the HTTPS connections.

Now set up the line ending conversions. The default is a Windows-style checkout. In other words, LF is converted to CRLF when checking out text files and vice versa at commit time. Git implements this conversion to correctly display line jumps in Windows. Likewise, other options can be selected according to the user’s needs.

Configure the line ending conversions.
Configure the line ending conversions.

Here in this window, Git will use a Linux command-line emulator. But in this case, it will be supported by git bash because we’ll be using Git on Windows.

Select MinTTY
Select MinTTY

Please leave the following options by default.

Enables the default options.
Enables the default options.

Git is offering to enable experimental options. In this case, it improves startup speed but can cause instability. So don’t select it and continue the installation.

Experimental options.
Experimental options.

After all the parameters are set, the wizard will begin installing the Git client. Please wait a few moments until he finishes his work.

Git installation completed
Git installation completed

Testing Git.

Once the installation is complete, enter Git into the search bar and launch the git bash. Note that this terminal has the basic functionality and utilities of a Unix shell.

Git bash running the ls command
Git bash running the ls command

We’ve finally seen how to install Git on Windows 10. It is one of the most widely used version control systems today. I hope this post is useful to you. Before saying goodbye, I invite you to see the article about Syncthing on Windows 10

- 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