An Interest In:
Web News this Week
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
- March 25, 2024
- March 24, 2024
- March 23, 2024
March 21, 2022 02:29 pm GMT
Original Link: https://dev.to/nalanj/a-couple-of-github-cli-aliases-hl6
A Couple of GitHub CLI Aliases
One thing I love about GitHub CLI is that it's easy to define aliases. You can run gh alias set ...
to define a new alias and add all sorts of useful commands. Here are two that I use every day:
gh alias set w 'run watch'
I type gh run watch
constantly, so shortening it to gh w
is very handy.
gh alias set merge 'pr merge -d'
This one makes it where typing gh merge
will merge the pr for the current branch, delete the branch on the remote and locally, and switch you back to your main branch.
It's always handy to save a few keystrokes. Define some aliases of your own and share them here in the comments!
Original Link: https://dev.to/nalanj/a-couple-of-github-cli-aliases-hl6
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To