glab config set git_protocol ssh -g

Category: GitLab

glab config set git_protocol ssh -g

Set the git protocol for clones and pushes

Configures whether glab clones and pushes over ssh or https. The -g flag applies the choice globally instead of only to the active host. SSH avoids password prompts on most setups and is the usual default.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.