mirror of https://github.com/CrimsonTome/tldr.git
gh-repo, gh-gist: add Chinese translation (#4950)
parent
4f20fdcd64
commit
7cc95674bc
|
@ -0,0 +1,24 @@
|
||||||
|
# gh gist
|
||||||
|
|
||||||
|
> 在命令行上使用 GitHub Gists.
|
||||||
|
> 更多信息: <https://cli.github.com/manual/gh_gist>.
|
||||||
|
|
||||||
|
- 从一个以空格分隔的文件列表中创建一个新的 Gist:
|
||||||
|
|
||||||
|
`gh gist create {{路径/文件}}`
|
||||||
|
|
||||||
|
- 创建一个带有描述的新 Gist:
|
||||||
|
|
||||||
|
`gh gist create {{文件名}} --desc "{{描述}}"`
|
||||||
|
|
||||||
|
- 编辑一个 Gist:
|
||||||
|
|
||||||
|
`gh gist edit {{id_或_url}}`
|
||||||
|
|
||||||
|
- 列出当前登录用户所拥有的 Gist:
|
||||||
|
|
||||||
|
`gh gist list --limit {{int}}`
|
||||||
|
|
||||||
|
- 在默认浏览器中查看 Gist,且不渲染 Markdown:
|
||||||
|
|
||||||
|
`gh gist view {{id_或_url}} --web --raw`
|
|
@ -0,0 +1,20 @@
|
||||||
|
# gh repo
|
||||||
|
|
||||||
|
> 在命令行上操作 GitHub 仓库.
|
||||||
|
> 更多信息: <https://cli.github.com/manual/gh_repo>.
|
||||||
|
|
||||||
|
- 创建一个新的仓库(如果没有设置仓库名称,默认将为当前目录的名称):
|
||||||
|
|
||||||
|
`gh repo create {{名称}}`
|
||||||
|
|
||||||
|
- 克隆一个仓库:
|
||||||
|
|
||||||
|
`gh repo clone {{拥有者}}/{{仓库}}`
|
||||||
|
|
||||||
|
- 复刻并克隆一个仓库:
|
||||||
|
|
||||||
|
`gh repo fork {{拥有者}}/{{仓库}} --clone`
|
||||||
|
|
||||||
|
- 在网络浏览器中查看仓库:
|
||||||
|
|
||||||
|
`gh repo view {{仓库}} --web`
|
Loading…
Reference in New Issue