TortoiseGit

Introduction

Usually git is not installed by default, so you need to install Git Bash , Tortoise Git or some other solution.

Installing TortoiseGit

We install TortoiseGit from here

We install GIT for Windows from here

installing Tortoise git for windows, image from website www.eth1.ru
Git Setup
Installing Tortoise Git

After installing Git for Windows a console will appear

installing Tortoise git for windows, image from website www.eth1.ru
Git Setup
Installing Tortoise Git

During the TortoiseGit installation you will need to specify the path to Git.exe

Git.exe will appear after installing Git for Windows, so watch the order of actions.

installing Tortoise git for windows, image from website www.eth1.ru
Git Setup
Installing Tortoise Git

TortoiseGit and GitLab

To connect TortoiseGit to a remote repository, for example GitLab you need to set up access by keys.

To do this you need to start generating keys. I choose the option Generate PuTTY key pair

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab
configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

After the tedious mouse movement for ~ 30 seconds you will see the result.

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

The keys have to be saved to a directory on your PC.

It is desirable to remember the name and the path to the directory.

Then you need to visit the SSH Keys upload page and upload there your PUBLIC key.

It must start with ssh-rsa.

The easiest way is to copy it from the putty window

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

If successful you will land on

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

Next you need to specify the path to the key in the TortoiseGit settings. I do not know where it is now in the settings themselves. It used to be in the Remotes item, if I am not mistaken.

The settings look as follows, but we will not poke around there; we will enter the path to the key in the next step.

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

To get the exact url that you want to clone, go to the required branch (branch) and click the Clone button.

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

Choose Clone with SSH. To copy this address you need to click the copy icon.

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

Let us create the folder Gitlab_test_HeiHei.ru

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

Right-click and choose Git Clone

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

Paste the address that we copied from GitLab earlier into the URL field

Then show the path to the private key and click OK.

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

If successful TortoiseGit will show the message Success

configuring Tortoise git for working with gitlab on windows, image from website www.eth1.ru
Git Setup
Configuring Tortoise Git for GitLab

Adding kdiff3 to TortoiseGit

If no diff and merge tool is selected in Git Bash, there will be a warning in the main window.

Study Settings - Checklist

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

One of the tools available to choose from is kdiff3

Choose kdiff3

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Then you need to specify the path to kdiff3.exe

Download kdiff3 from sourceforge.net

Start the installation and click I Agree

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Choose the components and click Next >

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Choose the installation directory and click Next >

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Set the installation type and click Next >

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Choose the Start menu directory and click Install

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Finish the installation by clicking Finish

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Study the README

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Return to Git Extensions and specify the path to kdiff3.exe in Path to mergetool and Path to difftool

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Now you can safely use Git Extensions

installing git for windows with openSSH, image from website www.eth1.ru
Git Setup
Installing Git Bash

Article author: Andrei Olegovich