詳細検索

Try using gitlab using source tree (1)

Avatar
by miyashitak
3 min read

Try using gitlab using source tree (1)
Translated from 日本語 • View original

Good morning. This is the Miyashita of infrastructure.

There is gitlab running in the company, but I am having trouble with fewer people using git than I thought, probably because there are few people who can use CLI. Recently, it seems that you can fully experience Git with Windows tools, so this time I would like to introduce "SourceTree". If you are an anti-CLI, you can use "SourceTree" to operate git sufficiently, so why not use it as a start?

Sorry if you don't understand the meaning of Git in the first place. I think someone will write the construction of git eventually, so I will omit it this time. Please see the following site, which is very easy to understand as a git knowledge.

Introduction to Git that even monkeys can understand Introduction to version control systems

Since it is a distributed version control system, I think it is better to use it together and have a bitter experience such as degreting once in a while. I think that if you have a good backup, the wound will be shallow... I think it can be used for chef, managing config to manage versions and diffs, or simply managing readme procedures.

1) Install SourceTree

Download the Windows 7 version of the file from the official Source tree website.

WS000000

Double-click the downloaded executable file "SourceTreeSetup_1.6.13.exe" to start the installation.

WS000001

It's almost all you have to do with the flow and install it.

WS000004

You will be asked to create a "global ignore configuration file", but "Yes" and "No" are fine for now. This time, I will proceed with "Yes".

WS000006

You can connect it by setting the public repository. If you have an account, enter your account, username, and password. This time it is a connection to our own gitlab, so we will "skip" it.

WS000007

Finally, you will be asked if you want to load the SSH key. If you already have it, you can register it, but you can do it later, so leave it as "No".

WS000008

2) Create and register an SSH key

Register the key of your working PC to connect to gitlab.

Start SourceTree and first create and register an SSH key. If you have already created a key, you don't have to bother to create one.

Launch PuttyKeyGenerator in "Tools" → "Create/Import SSH Key".

WS000010

Click "Generate" and move your mouse a lot to complete the key creation.

WS000011

Click "Save public key" and save the public key as gitlab-test.pub. Click "Save private key" to save the private key as gitlab-test.ppk. *For security reasons, it is better to include a key passphrase.

Finally, register your private key. Specify the private key you saved earlier from "Tools" → "Options" in "General" to the SSH client settings.

sourcetree10

It has become longer than expected, so I will connect to gitlab next time.

It is a very easy-to-understand sourcetree introduction support site. Aotaku Note: Using Git from SourceTree for Windows

Related Articles