GitLab with ssh keys
Check the official documentation for more information.
Generate ssh keys.
Copy ssh keys to GitLab. Navigate to the SSH Keys tab in your Profile Settings. Paste your key in the Key section and give it a relevant Title.
Start the ssh agent and add your keys to the agent.
ORStatic config.
Configure git options. You could also ommit the --global
settings for repository only configuration.
Clone a repository over ssh.
To update the origin
remote repository from http to ssh.