gh repo clone <repository> [directory]

Clone a GitHub repository locally. If the "OWNER/" portion of the "OWNER/REPO" repository argument is omitted, it defaults to the name of the authenticating user. Pass additional 'git clone' flags by listing them after '--'

Arguments

NameDescription
repository
directory

Options

NameDescription
-- <flags...>Flags to pass to git when cloning
-u, --upstream-remote-name <string>Upstream remote name when cloning a fork (default "upstream")