GH-REPO(1)
π gh-repo β manage repositories, bestie π
okay so this is the gh manual page for gh repo, straight out of the GitHub CLI manual (yes, that's the manual name, we're being fancy today β¨). Sit down, grab a strawberry π, and let's get into it.
β¨ SYNOPSIS β¨
gh repo <command> [flags]
that's the whole vibe. you pick a <command> and then you slap some [flags] on it. iconic.
π¦ DESCRIPTION π¦
Work with GitHub repositories. that's it, that's the whole thing. literally your entire repo era, handled from the terminal π
πΈ GENERAL COMMANDS πΈ
these are the big main-character ones β the ones you'll reach for like every single day:
gh-repo-create(1)β Create a new repository β¨ brand new repo, no capgh-repo-list(1)β List repositories owned by user or organization π
π TARGETED COMMANDS π
these ones are for when you've got a specific repo in mind. targeted. laser focused. iykyk:
gh-repo-archive(1)β Archive a repository π¦gh-repo-autolink(1)β Manage autolink references πgh-repo-clone(1)β Clone a repository locallygh-repo-delete(1)β Delete a repository π (be careful bestie)gh-repo-deploy-key(1)β Manage deploy keys in a repository πgh-repo-edit(1)β Edit repository settings βοΈgh-repo-fork(1)β Create a fork of a repository π΄gh-repo-gitignore(1)β List and view available repository gitignore templates πgh-repo-license(1)β Explore repository licenses πgh-repo-read-dir(1)β List a directory in a repository (preview) πgh-repo-read-file(1)β Read a file from a repository (preview) πgh-repo-rename(1)β Rename a repository π·οΈgh-repo-set-default(1)β Configure default repository for this directory βgh-repo-sync(1)β Sync a repository πgh-repo-unarchive(1)β Unarchive a repository π€gh-repo-view(1)β View a repository ποΈ
π EXIT CODES π
the vibe check results, fr fr:
0: Successful execution π slay1: Error π2: Command canceled π4: Authentication required π (go log in bestie)
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. β like, don't assume these four are the whole story, always check the specific command's help π«Ά
π EXAMPLE π
$ gh repo create
$ gh repo clone cli/cli
$ gh repo view --web
look at that. creating, cloning, and yeeting the repo view straight into your browser with --web. obsessed. π₯
β SEE ALSO β
gh(1)β the parent page, the icon, the main character π
and that's the tea, bestie π§π
this little tour was brought to you by GitHub CLI v2.102.0, dated Oct 2026 β go forth and manage those repositories ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms