Github CLI已将Github带到终端。它可以帮助您集中精力,使您可以更轻松地编写脚本并创建自己的工作流程。
Github CLI已超出Beta版,并发布了V 1.0,可供下载 Windows,macOS,Linux
发布日期 : 2020年9月17日
我们可以使用GitHub CLI做什么
- 它从终端运行从问题到发布的整个GitHub工作流程。
- 它调用GitHub API来编写几乎所有动作的脚本,并为任何命令设置自定义别名。
- 除了GitHub.com之外,它还连接到GitHub Enterprise Server。
一些CLI命令
获取问题列表
gh issue list
Showing 4 of 4 issues in cli/cli
#16 Improving interactions with protected branches
#14 PR commands on a detached head
#13 Support for GitHub Enterprise (enhancement)
#8 Add an easier upgrade command (bug)
获取拉取请求状态
gh pr status
Relevant pull requests in cli/cli
Current branch
There is no pull request associated with [fix-homepage-bug]
Created by you
You have no open pull requests
Requesting a code review from you
#100 Fix footer on homepage [fix-homepage-footer]
✓ Checks passing - Review pending
在以下链接上找到完整手册 //cli.github.com/manual/