gh repo view
gh repo view [<repository>] [flags]
显示 GitHub 存储库的描述和 README。
如果没有参数,将显示当前目录的存储库。
使用--web
,改为在 web 浏览器中,打开存储库。
使用--branch
,查看存储库的特定分支。
Options
-b
,--branch <string>
- 显示特定分支
-q
,--jq <expression>
- jq 表达式,过滤 JSON 输出
--json <fields>
- JSON 输出特殊字段
-t
,--template <string>
- 模板化输出
-w
,--web
- 浏览器打开