# authenticate with your GitHub account# Alternatively, gh will respect the GITHUB_TOKEN environment variableghauthlogin# GitHub Enterpriseghauthlogin--hostname<hostname># verifyghauthstatus
# Print a list of configuration keys and valuesghconfiglist [flags]# rint the value of a given configuration keyghconfigget<key> [flags]# Update configuration with a value for the given keyghconfigseteditor"code --wait"
Usage
repos
# Cloning a repositoryghrepoclonecli/cli# Sync local repository from remote parentghreposync
alias
# Aliases can be used to make shortcuts for gh commands or to compose multiple commands.ghaliasset<alias><expansion> [flags]$ghaliassethomework'issue list --assignee @me'$ghhomework
Miscellaneous
# Open the GitHub repository in the web browser.ghbrowse# run github actionsghworkflowviewghworkflowlist# publish file 'hello.py' as a public gistghgistcreate--publichello.py# List all issuesghissuelist# List all PRsghprlist