summaryrefslogtreecommitdiff
path: root/doc/gitlab_basics/create_your_ssh_keys.md
blob: 3720381f014ac8a608e12a857daff39db8bd88d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# How to create your SSH Keys

You need to connect your computer to your GitLab account through SSH Keys. They are unique for every computer that you link with your GitLab account with.

## Generate your SSH Key

* Create an account on GitLab. Sign up and check your email for your confirmation link

* After you confirm, go to [gitlab.com](https://about.gitlab.com/) and sign in to your account

## Add your SSH Key

* At the top right corner, click on "profile settings"

![profile settings](basicimages/profile_settings.png)

* On the left side menu click on "SSH Keys"

![SSH Keys](basicimages/shh_keys.png)

* Then click on the green button "Add SSH Key"

![Add SSH Key](basicimages/add_sshkey.png)

* There, you should paste the SSH Key that your commandline will generate for you. Below you'll find the steps to generate it

![Paste SSH Key](basicimages/paste_sshkey.png)

## To generate an SSH Key on your commandline

* Go to your [commandline](start_using_git.md) and follow the [instructions](https://gitlab.com/help/ssh/README) to generate it 

* Copy your SSH Key that your commandline created and paste it on the "Key" box on the GitLab page. The title will be added automatically

![Paste SSH Key](basicimages/key.png)

## Things to know when using your commandline
	
1. Don’t use capital letters 

1. You need to find out how your directory is structured. The structure is like a tree, so you won’t be able to access one subfolder unless you open the main folder where it is contained. Directories are folders or files in your system. 

1. You can change multiple pages in one commit. A branch consists of multiple commits. 

1. The terminal will add changes locally in your computer, that you later need to send to gitlab.com.

1. You can add changes directly into your computer files after you tell the terminal: “git pull NAME OF DOC”, and then you can send those changes to GitLab through the terminal. (changes like adding files, changing names, adding pictures to files, etc)