gtl env connect glab
Parent command: gtl env connect.
Add or update the .envrc GitLab block for glab, set repo-local Git commit identity from the selected GitLab account, and export matching GIT_AUTHOR_* and GIT_COMMITTER_* variables for child processes and agents. Pass --no-git-identity to update only the glab account block.
Aliases
gitlab
Usage
bash
gtl env connect glab <account> [flags]Examples
bash
gtl env connect glab work-glab --host gitlab.com
gtl env connect glab bot --host gitlab.com --gitlab-token-command 'security find-generic-password -w -s gitlab-bot'
gtl env connect glab work-glab --no-git-identityFull Help
text
Add or update the .envrc GitLab block for glab, set repo-local Git commit identity from the selected GitLab account, and export matching GIT_AUTHOR_* and GIT_COMMITTER_* variables for child processes and agents. Pass --no-git-identity to update only the glab account block.
Usage:
gtl env connect glab <account> [flags]
Aliases:
glab, gitlab
Examples:
gtl env connect glab work-glab --host gitlab.com
gtl env connect glab bot --host gitlab.com --gitlab-token-command 'security find-generic-password -w -s gitlab-bot'
gtl env connect glab work-glab --no-git-identity
Flags:
--allow-new-account Skip current glab account validation
--git-email string Git user.email to set locally (defaults to GitLab commit email/public email)
--git-name string Git user.name to set locally (defaults to GitLab name/username)
--gitlab-token-command string Shell command that prints the selected GitLab token for GITLAB_TOKEN
-h, --help help for glab
--host string GitLab host (default: gitlab.com) (default "gitlab.com")
--no-git-identity Do not set local Git commit identity
--set-git Set local Git commit identity from the selected GitLab account (default)