A comprehensive guide to the eight most useful commands in GitHub's official CLI tool (gh). Covers browsing repositories and files, cloning repos with fork detection, creating and managing pull requests through multiple modes (interactive, direct, fill, editor), checking out PRs for review, merging with cleanup options, and
Table of contents
1. Open things in the browser with gh browse2. Open some other things in the browser with -w ( --web )3. Clone a repository with gh repo clone4. Start working on an issue with gh issue develop -c5. Create a pull request with gh pr create6. Check out an existing pull request with gh pr checkout7. Merge a pull request with gh pr merge8. Watch a GitHub Actions workflow run with gh run watchFinSort: