From 39cc9373a2e9a0e5790145d4dbed4a911512b9ea Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Sun, 10 Jan 2021 10:53:18 -0300 Subject: [PATCH] gh-alias: add page (#5125) * gh-alias: add page * Apply suggestions from code review Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> * rename shortcut to alias Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> --- pages/common/gh-alias.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/gh-alias.md diff --git a/pages/common/gh-alias.md b/pages/common/gh-alias.md new file mode 100644 index 000000000..f1733e8a0 --- /dev/null +++ b/pages/common/gh-alias.md @@ -0,0 +1,24 @@ +# gh alias + +> Manage GitHub CLI command aliases from the command line. +> More information: . + +- Display the subcommand help: + +`gh alias` + +- List all of the aliases `gh` is configured to use: + +`gh alias list` + +- Create a `gh` subcommand alias: + +`gh alias set {{pv}} '{{pr view}}` + +- Set a shell command as a `gh` subcommand: + +`gh alias set --shell {{alias_name}} {{command}}` + +- Delete a command shortcut: + +`gh alias delete {{alias_name}}`