Skip to content

Commit 07ccec1

Browse files
authored
Merge pull request cli#11804 from cli/babakks/add-co-alias-to-pr-checkout
Add alias `co` for `pr checkout`
2 parents 743a819 + 0ec5f13 commit 07ccec1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/cmd/pr/checkout/checkout.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ func NewCmdCheckout(f *cmdutil.Factory, runF func(*CheckoutOptions) error) *cobr
5757
$ gh pr checkout https://github.com/OWNER/REPO/pull/32
5858
$ gh pr checkout feature
5959
`),
60-
Args: cobra.MaximumNArgs(1),
60+
Args: cobra.MaximumNArgs(1),
61+
Aliases: []string{"co"},
6162
RunE: func(cmd *cobra.Command, args []string) error {
6263
if len(args) > 0 {
6364
opts.PRResolver = &specificPRResolver{

0 commit comments

Comments
 (0)