After installing Git and in Git Bash...
$ ssh-keygen -t rsa
You can change the default name or location if you prefer
Copy the key to your GitLab
$ cat ~/.ssh/my_key.pub | xclip
and test it
$ ssh -T -i ~/.ssh/my_key [email protected]
Create a config
$ touch ~/.ssh/config
Open that file in your editor and add the following
host gitlab.com
HostName gitlab.com
IdentityFile ~/.ssh/my_key
User git
Make a folder for your project and go to the folder
Clone the repository
$ 'git clone [email protected]:project/project.git