Basic Commands⌗
gh auth loginlogs you in to your GitHub account and stores your authentication credentials locally.
gh repo createcreates a new repository on GitHub and initializes it with a README file.
gh repo clone [repository]clones a remote repository to your local machine.
gh issue createcreates a new issue on GitHub.
gh pr createcreates a new pull request on GitHub.
gh pr checkout [pull request]checks out the specified pull request locally.
gh pr merge [pull request]merges the specified pull request into the base branch.
gh pr listlists all open pull requests for the current repository.
Branching⌗
gh repo forkforks the current repository on GitHub.
gh repo clone [repository] –forkclones a forked repository to your local machine.
gh repo fork –cloneforks the current repository on GitHub and clones it to your local machine.
Collaborating⌗
gh collaborator add [username]adds the specified user as a collaborator on the current repository.
gh collaborator remove [username]removes the specified user as a collaborator on the current repository.
gh issue assign [issue] [username]assigns the specified issue to the specified user.
gh issue close [issue]closes the specified issue on GitHub.
Workflows⌗
gh workflow run [workflow]runs the specified GitHub Actions workflow.
gh secret set [name]sets a secret for use in GitHub Actions workflows.
gh secret listlists all secrets for the current repository.