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
After installing Git for Windows a console will appear
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.
Then you need to start generating keys. I choose the option Generate PuTTY key pair
After the tedious mouse movement for ~ 30 seconds you will see the result.
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
If successful you will land on
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.
To get the exact url that you want to clone, go to the required branch and click the Clone button.
Choose Clone with SSH. To copy this address you need to click the copy icon.
Let us create the folder Gitlab_test_HeiHei.ru
Right-click and choose Git Clone
Paste the address that we copied from GitLab earlier into the field
URL
Then show the path to the private key and click OK.
If successful TortoiseGit will show the message Success
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
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.
To change the branch with which you synchronised the folder on your computer.
Article author: Andrei Olegovich