Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
March 21, 2022 02:29 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To