Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7883609

Browse files
committed
Document how to set gh-merge-base
Follow-up to PR cli#9712
1 parent 5402e20 commit 7883609

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cmd/pr/create/create.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
121121
122122
The base branch for the created PR can be specified using the %[1]s--base%[1]s flag. If not provided,
123123
the value of %[1]sgh-merge-base%[1]s git branch config will be used. If not configured, the repository's
124-
default branch will be used.
124+
default branch will be used. Run %[1]sgit config branch.{current}.gh-merge-base {base}%[1]s to configure
125+
the current branch to use the specified merge base.
125126
126127
Link an issue to the pull request by referencing the issue in the body of the pull
127128
request. If the body text mentions %[1]sFixes #123%[1]s or %[1]sCloses #123%[1]s, the referenced issue

0 commit comments

Comments
 (0)