Create Your SSH KeyFor git you are going to need an ssh key though it's technically not required. But sooner or later you will need one anyway.
Generate your ssh key:
It will ask you for a passphrase. This is a password that secures your SSH-key. You can decide to not use a passphrase. However, anyone who has access to your SSH-key also has full access to your git repositories. If you decide to use a passphrase, you will be required to enter it every time your key is being used.
ssh-keygen -t rsa -b 4096 -C "email@example.com"
It will also ask you where to store the key. The default is fine.
Add your key to Gitlab:Now it's time to tell GitLab about your public SSH-key. To do that simply login into GitLab and click "Settings".
Then on the left panel choose SSH keys.
For GitLab paste the public key into the key field; also provide a title.