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
After installing Git for Windows a console will appear
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
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 GitLab
Configuring Tortoise Git for GitLab
After the tedious mouse movement for ~ 30 seconds you will see the result.
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 GitLab
If successful you will land on
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 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 GitLab
Choose Clone with SSH. To copy this address you need to click the copy icon.
Configuring Tortoise Git for GitLab
Let us create the folder Gitlab_test_HeiHei.ru
Configuring Tortoise Git for GitLab
Right-click and choose Git Clone
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 GitLab
If successful TortoiseGit will show the message Success
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 Bash
One of the tools available to choose from is kdiff3
Choose kdiff3
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 Bash
Choose the components and click Next >
Installing Git Bash
Choose the installation directory and click Next >
Installing Git Bash
Set the installation type and click Next >
Installing Git Bash
Choose the Start menu directory and click Install
Installing Git Bash
Finish the installation by clicking Finish
Installing Git Bash
Study the README
Installing Git Bash
Return to Git Extensions and specify the path to kdiff3.exe in Path to mergetool and Path to difftool
Installing Git Bash
Now you can safely use Git Extensions
Installing Git Bash
Article author: Andrei Olegovich