Skip to content

Commit 521faa8

Browse files
authored
updated examples for add cmd
Co-authored-by: Sameen Karim <skarim@github.com>
1 parent 9d6e3b7 commit 521faa8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

cmd/add.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ stack prefix.`,
3434
$ gh stack add my-feature
3535
3636
# Add a branch and commit staged changes
37-
$ gh stack add -Am "Add user authentication"
37+
$ gh stack add -Am "Add user authentication" my-feature
3838
3939
# Auto-generate branch name from the commit message
40-
$ gh stack add -m "Fix login bug"`,
40+
$ gh stack add -m "Fix login bug"
41+
42+
# Add a branch and open editor to write commit message
43+
$ gh stack add -A my-feature`,
4144
Args: cobra.MaximumNArgs(1),
4245
RunE: func(cmd *cobra.Command, args []string) error {
4346
return runAdd(cfg, opts, args)

0 commit comments

Comments
 (0)