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:
Git Cheat Sheet Available – I have also created a Git cheat sheet you can download too. Using both of these cheat sheets will definitely help you level-up your Git and GitHub CLI game!
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!
Original Article Source: GitHub CLI (gh) Cheat Sheet written by Chris Pietschmann (If you're reading this somewhere other than Build5Nines.com, it was republished without permission.)
Microsoft Azure Regions: Interactive Map of Global Datacenters
Create Azure Architecture Diagrams with Microsoft Visio
Implementing Azure Naming Conventions at Scale with Terraform and Build5Nines/naming/azure (AzureRM + Region Pairs)
Unlock GitHub Copilot’s Full Potential: Why Every Repo Needs an AGENTS.md File
New Book: Build and Deploy Apps using Azure Developer CLI by Chris Pietschmann



