File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ Usage: gs branch (b) create (c) [<name>] [flags]
2222
2323The shorthand for a command is the bits in parentheses joined together.
2424For example, the shorthand for $$ gs branch create $$ above is ` gs bc ` .
25- Another example:
25+
26+ As another example, the shorthand for $$ gs branch checkout $$ is ` gs bco ` .
2627
2728``` freeze language="terminal"
2829{green}${reset} gs branch checkout --help
@@ -31,7 +32,25 @@ Usage: gs branch (b) checkout (co) [<branch>] [flags]
3132{gray}# ...{reset}
3233```
3334
34- The shorthand for $$ gs branch checkout $$ is ` gs bco ` .
35+ Some commands have multiple aliases, but there's always only one shorthand.
36+ For example, $$ gs branch delete $$ has two aliases: ` d ` and ` rm ` .
37+
38+ ``` freeze language="terminal"
39+ {green}${reset} gs branch delete --help
40+ Usage: gs branch (b) delete (d,rm) [<branches> ...] [flags]
41+
42+ {gray}# ...{reset}
43+ ```
44+
45+ So valid ways to invoke the command are:
46+
47+ ``` freeze language="terminal"
48+ {green}${reset} gs bd
49+ {green}${reset} gs b d
50+ {green}${reset} gs b rm
51+ {green}${reset} gs branch rm
52+ {green}${reset} gs branch delete
53+ ```
3554
3655!!! question "When to use built-in shorthands?"
3756
You can’t perform that action at this time.
0 commit comments