- One Tip a Week
- Posts
- One Tip a Week: GitHub CLI
One Tip a Week: GitHub CLI
This week’s tip of the week is the GitHub CLI. Some people when I mention it are still unaware of it, so I decided to make it this week’s tip of the week.
The GitHub CLI brings your GitHub workflow into your terminal. That means fewer context switches and more focus.
You can:
Clone a repo:
gh repo clone owner/repo
Open a PR:
gh pr create
Checkout a branch from a PR:
gh co 123
and more!
I literally use this every day from the command line as well as in GitHub actions. It’s that indispensable if your projects are on GitHub. I also wrote about it a while back. Check out Boost productivity with the GitHub CLI!
I even use the GitHub CLI in my shell alias for checking out PRs. The shell alias is leveraging the GitHub CLI and Git worktrees, last week’s post. You can read more about that alias and a deeper dive into worktrees in my latest blog post.
That’s it! Short and sweet. Until the next one!