gh CLI
Cheatsheet for the GitHub CLI.
Repos
# Clone into a specific path
gh repo clone owner/name ~/path# Create a repo from the current directory and push
gh repo create owner/name --private --source=. --push# Open the repo in the browser
gh repo view --web# Checkout a PR locally
gh pr checkout 123References
- GitHub CLI manual — official command reference