gh-repo1
Manage repositories
Usage
gh repo
<command>
[flags]
Overview
Work with GitHub repositories.
General commands
|
Create a new repository |
|---|---|
|
List repositories owned by user or organization |
Targeted commands
|
Archive a repository |
|---|---|
|
Manage autolink references |
|
Clone a repository locally |
|
Delete a repository |
|
Manage deploy keys in a repository |
|
Edit repository settings |
|
Create a fork of a repository |
|
List and view available repository gitignore templates |
|
Explore repository licenses |
|
List a directory in a repository (preview) |
|
Read a file from a repository (preview) |
|
Rename a repository |
|
Configure default repository for this directory |
|
Sync a repository |
|
Unarchive a repository |
|
View a repository |
Exit status
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
Examples
$ gh repo create $ gh repo clone cli/cli $ gh repo view --web
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.