Files
tldr/pages.zh/common/gh-alias.md

24 lines
461 B
Markdown

# gh 别名
> 管理 GitHub CLI 命令别名。
> 更多信息:<https://cli.github.com/manual/gh_alias>。
- 列出所有已配置的 `gh` 别名:
`gh alias list`
- 创建一个 `gh` 子命令别名:
`gh alias set {{pv}} '{{pr view}}'`
- 将一个 shell 命令设置为 `gh` 子命令:
`gh alias set --shell {{alias_name}} {{command}}`
- 删除一个命令快捷方式:
`gh alias delete {{alias_name}}`
- 显示子命令帮助:
`gh alias`