glab-repo-remote-add1
Add a git remote for a gitlab project.
Usage
glab repo
remote
add
[flags]
Overview
Add a Git remote for a GitLab project using a project reference.
The remote name defaults to the first path component (the namespace), so the remote identifies where the repository lives.
Options
-n, --name=""
Name for the remote (default: first path component)
-p, --protocol=""
Git protocol: ssh, https (default: git_protocol config)
Options inherited from parent commands
-h, --help[=false]
Show help for this command.
Examples
# 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