Setting up an SSH key in GitLab
Start by installing the GitLab CLI:
shell
# Or your equivalent
brew install glabLog in to your account:
shell
# Answer the questions to log into gitlab.com or other
glab auth loginApprove the OAuth request in the web browser.
Add an SSH key using glab ssh-key add:
shell
# Requires a path to a key as a positional argument, and a title.
glab ssh-key add ~/.ssh/id_rsa.pub --title "My Machine"