Installing Tortoise GIT on Windows

Introduction

Usually git is not installed by default, so you need to install gitbash

TortoiseGit

We install TortoiseGit from here

We install GIT for Windows from here

git openSSH or Tortoise plink

After installing Git for Windows a console will appear

git openSSH or Tortoise plink

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.

git openSSH or Tortoise plink

Then you need to start generating keys. I choose the option Generate PuTTY key pair

git openSSH or Tortoise plink

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

git openSSH or Tortoise plink

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

git openSSH or Tortoise plink

If successful you will land on

git openSSH or Tortoise plink

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.

git openSSH or Tortoise plink

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

git openSSH or Tortoise plink

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

git openSSH or Tortoise plink

Let us create the folder Gitlab_test_HeiHei.ru

git openSSH or Tortoise plink

Right-click and choose Git Clone

git openSSH or Tortoise plink

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

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

git openSSH or Tortoise plink

If successful TortoiseGit will show the message Success

git openSSH or Tortoise plink

Branches - Branches

When you work with Git it is important to understand how branches work.

If you are a developer, the standard branch for you is probably called dev.

You make your commits or pushes into it, and the senior programmer then merges them into the branch master

You can see the list of all branches in Repository → Branches

git openSSH or Tortoise plink

There will be the master, dev and any branches the developers came up with.

Sometimes they may be tied to certain stories in the task planner (for example Pivotal Tracker ) and sometimes they just appear to test some hypotheses.

git openSSH or Tortoise plink

To change the branch with which you synchronised the folder on your computer.

git openSSH or Tortoise plink

Article author: Andrei Olegovich