It is best practice to use Git over SSH instead of Git over HTTP. In order to use SSH, you will need to:
- Create an SSH key pair
- Add your SSH public key to GitLab
To add the SSH public key to GitLab, see Adding an SSH key to your GitLab account.
Note: Once you add a key, you cannot edit it. If it didn’t paste properly, it will not work, and you will need to remove the key from GitLab and try adding it again.