开源日报 每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,坚持阅读《开源日报》,保持每日学习的好习惯。
今日推荐开源项目:《机器学习 PyTorch》
今日推荐英文原文:《Say Hello to the New GitHub CLIs》
开源日报第715期:《机器学习 PyTorch》
今日推荐开源项目:《机器学习 PyTorch》 传送门:GitHub链接
推荐理由:PyTorch 是一个开源的、基于 Python 的可续计算包,提供两个高级功能:具有强大的GPU加速的张量计算(如NumPy),和包含自动求导系统的的深度神经网络。
今日推荐英文原文:《Say Hello to the New GitHub CLIs》 作者:Calvin Nguyen
原文链接:https://medium.com/better-programming/say-hello-to-the-new-github-clis-7e2612fb3918
推荐理由:顾名思义,本文介绍了一些使用 Git Hub CLI 的方法。如果你是 Git Hub 的忠实用户但是又觉得网页和终端转换繁琐的话,不妨试试这个吧。

Say Hello to the New GitHub CLIs

All you need to know about using GitHub from your terminal

开源日报第715期:《机器学习 PyTorch》
(Source by Github)
GitHub tools are all great, but sometimes, I get exhausted as I’m coding and have to switch from my terminal/text editor to do many clicks in the browser, just to create or view a PR.

Luckily, on March 6th, 2020, GitHub released a new cool GitHub CLI, with which you can do everything you do on github.com on your local terminal. There are three main commands in this beta version that I will discuss below:

  1. Issue
  2. Pull Request (PR)
  3. Repo

macOS: Easy Install With brew

Upgrade

Windows

gh is available via Scoop: For Linux and other platforms, please refer to this GitHub page.

1. gh issue [create, list, view, status]

Create an issue

Or, if you still prefer editing in the browser, quickly enter:

List all issues

View an issue

Then, it will redirect me to the issue link. 开源日报第715期:《机器学习 PyTorch》 Or you can preview it in your local as well:

Status


2. gh pr [status, list, view, checkout, create]

Create a PR

As you can see, if there’s one thing that I love about gh pr create, it is that it will push your commit to your working branch and create a PR within a few seconds.

List/view/status with PR (same with the issue)

Checkout a PR

This is very similar to a regular branch checkout.

3. gh repo [clone, create, fork, view]

Clone a repo

Create/view a repo

开源日报第715期:《机器学习 PyTorch》

Fork a repo


Future Improvement

Since this is still in beta version and I have not found any bugs yet, I believe that these cool Git CLIs will help improve productivity for many developers.

That’s it for this beta version. It makes my development better, and I like it!

With GitHub CLIs; less clicking, more typing — the more productive I am.

Thanks for reading and I hope it makes you feel happier!


下载开源日报APP:https://openingsource.org/2579/
加入我们:https://openingsource.org/about/join/
关注我们:https://openingsource.org/about/love/