When working with GitHub Repositories, the Github.com website provides an excellent interface for working with Issues, Pull Requests, and Repositories. Of course, when committing file changes and merging branches, you still use the git CLI. However, this requires context switching between CLI and browser. Luckily, the GitHub CLI (gh) offers a full command-line / terminal experience for working with GitHub. Here’s a cheat sheet I’ve put together that showcases many of the GitHub CLI commands to help you be more productive at the command-line as you perform operations against your GitHub Pull Requests, Issues, and Repositories!
The GitHub CLI Cheat Sheet is available in a couple different formats for download:
Feel free to print this GitHub CLI cheat sheet, or save it to your desktop, for easy access to common GitHub CLI commands. This way you will be able to stay more productive by not needing to look up these commands so often as you’re working with your GitHub Pull Requests, Issues, and Repositories from the command-line.
Happy working with GitHub!