GH-REPO-CLONE(1) GitHub CLI manual GH-REPO-CLONE(1) (NAME) gh-repo-clone - (SYNOPSIS) gh repo clone [] [-- ...] (DESCRIPTION) . git clone -- . OWNER/ OWNER/REPO . git_protocol gh config get git_protocol . . () upstream . --upstream-remote-name . --upstream-remote-name @owner . . --no-upstream . (OPTIONS) --no-upstream (upstream) -u, --upstream-remote-name (default "upstream") (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # $ gh repo clone cli/cli # $ gh repo clone myrepo # $ gh repo clone https://github.com/cli/cli $ gh repo clone git@github.com:cli/cli.git # $ gh repo clone cli/cli workspace/cli # git clone $ gh repo clone cli/cli -- --depth=1 # $ gh repo clone myfork --no-upstream (SEE ALSO) gh-repo(1) Sep 2026 GH-REPO-CLONE(1)