Adding SSH key to Gitlab
- Check if SSH key set on your machine
- Open Git-Bash type: ls –al ~/.ssh
- If you see id_rsa and is_rsa.pub you have your ssh set
- Copy your SSH key
- In Git-Bash type: " clip < ~/.ssh/id_rsa.pub "
-
You shouldn’t see any kind of message when you run this command. If
you do, make sure you entered it correctly.
-
Note: Do not copy anything else to your clipboard until all steps are
completed. Otherwise, you’ll need to enter the copy command again.
-
Clone the Repo from Gitlab
- In Gitlab go to project detail page
- Click on "clone" and copy "Clone with SSH" url
- In Git-Bash type : git clone (paste the url)