.nh .TH "glab" "1" "Sep 2026" "Auto generated by spf13/cobra" "" .SH NAME glab-repo-remote-add - Add a Git remote for a GitLab project. .SH SYNOPSIS \fBglab repo remote add [flags]\fP .SH DESCRIPTION Add a Git remote for a GitLab project using a project reference. .PP The remote name defaults to the first path component (the namespace), so the remote identifies where the repository lives. .SH OPTIONS \fB-n\fP, \fB--name\fP="" Name for the remote (default: first path component) .PP \fB-p\fP, \fB--protocol\fP="" Git protocol: ssh, https (default: git_protocol config) .SH OPTIONS INHERITED FROM PARENT COMMANDS \fB-h\fP, \fB--help\fP[=false] Show help for this command. .SH EXAMPLE .EX # Add a remote repository (remote named "alice") glab repo remote add alice/my-project # Add a remote repository with a custom name glab repo remote add alice/my-project --name upstream # Add a remote repository in a subgroup (remote named "group") glab repo remote add group/subgroup/my-project .EE .SH SEE ALSO \fBglab-repo-remote(1)\fP