DEV Community

I tried Github CLIs...and I never open browser again!

Calvin Nguyen on August 30, 2020

Update: I added #discuss, so please if anyone of you knows new features of Github CLIs, feel free to comment. Below, I found more cool things I cou...
Collapse
 
juanfrank77 profile image
Juan F Gonzalez

I was actually trying out the Github CLI today from my Ubuntu distro and it looked pretty cool to me. It gives the relevant info for issues and also PR's on a repo.

I think I can get used to it more than having to go to the browser. Also, I didn't know that gh pr create did push AND created the pr on GH, that's sooo cool!

Collapse
 
calvinqc profile image
Calvin Nguyen

Yep, that's why I start to use more gh pr create today, doing extra steps on the browser is just too tired

Collapse
 
jwp profile image
John Peters

We don't store our source on github, but.... I do only use command line git commands. I have an advantage doing that over GUI based Git command tools because (as painful as it can get sometimes) I'm forced to learn how Git things. As I move to my opensource projects I will use this article to help me get started, Thanks Calvin.

Collapse
 
calvinqc profile image
Calvin Nguyen

Sure @john , I'm really glad that could help provide great information for people. :). I know sometimes it's really painful with git, but the more I use and make mistake, the more confident I feel about git. so yeah, let's keep on practicing!

Collapse
 
vivinh0 profile image
Viviño

I did't know about this CLI. Very interesting tool, so thanks.

BTW to Linux users out there, you can install brew and then this CLI following macOS commands.

Collapse
 
calvinqc profile image
Calvin Nguyen

Thanks for providing

Collapse
 
vivinh0 profile image
Viviño

Thanks to you for the post.

Collapse
 
kenystev profile image
Kevin J. Estevez

It's awesome, I like it but I'd like to have the option to add a reviewer as well 😅

Collapse
 
adriansamuel profile image
Adrian Samuel

It's already here:

gh pr create --reviewer monalisa,hubot 

Taken from: cli.github.com/manual/gh_pr_create

Collapse
 
kenystev profile image
Kevin J. Estevez • Edited

Wow that should be new because I was looking for it in the documentation of the first release (which I used) and couldn't find it 😯 thanks Adrian

Thread Thread
 
kenystev profile image
Kevin J. Estevez

yeah definitely it's new, I was still on 0.7.0 version and now just updated to 0.11.1

Collapse
 
calvinqc profile image
Calvin Nguyen

Wow, I think it's new, I tried the beta version, and love to do more with the PR with the CLIs (Compare with other branch instead of the default branch)

Collapse
 
thinkverse profile image
Kim Hallberg • Edited

Yeah, that tool is awesome isn't it? 🤘
For personal projects, I usually just add the --fill flag to pre-fill the title and description with the commits.

Collapse
 
calvinqc profile image
Calvin Nguyen

Nice, thanks for the FYI, learn sth new today! Will use it for my personal project

Collapse
 
moopet profile image
Ben Sinclair

Step 3 in your "normal flow" example has an error in it - you don't want to push your local branch to master.

Collapse
 
calvinqc profile image
Calvin Nguyen

lol, dang, I barely use git push these days haha. Thanks for reminding!

Collapse
 
louislow profile image
Louis Low

I start using gh today! It improves my productivity at a significant level.

Collapse
 
khuongduybui profile image
Duy K. Bui

If you use VSCode, try the official GitHub Pull Requests extension. I have always used it in place of opening the browser.