glab(1) glab(1) (NAME) glab-repo-mirror - (SYNOPSIS) glab repo mirror [] [flags] (DESCRIPTION) GitLab. GitLab . . : o (Pull mirror): GitLab . (source of truth) . GitHub Bitbucket GitLab . o (Push mirror): GitLab . GitLab (source of truth) . GitHub Bitbucket GitLab . : o : https://username:token@gitlab.example.com/org/repo o GitLab SSH (deploy keys) . (OPTIONS) --allow-divergence[=false] (divergent refs) . --direction="pull" . : pull push. --enabled[=true] . --protected-branches-only[=false] . --url="" . (OPTIONS INHERITED FROM PARENT COMMANDS) -h, --help[=false] . (EXAMPLES) # (pull) glab repo create mygroup/myproject --public glab repo mirror mygroup/myproject --direction=pull --url="https://gitlab.example.com/org/repo" # glab repo mirror mygroup/myproject --direction=pull --url="https://username:token@gitlab.example.com/org/private-repo" # glab repo mirror mygroup/myproject --direction=pull --url="https://gitlab.example.com/org/repo" --protected-branches-only # (push) GitLab glab repo mirror mygroup/myproject --direction=push --url="https://gitlab-backup.example.com/backup/myproject" # glab repo mirror mygroup/myproject --direction=push --url="https://gitlab-backup.example.com/backup/repo" --allow-divergence (SEE ALSO) glab-repo(1) Auto generated by spf13/cobra Sep 2026 glab(1)