Skip to content

Commit c13a5fe

Browse files
gregjacobsongitster
authored andcommitted
push: enhance unspecified push default warning
When the unset push.default warning message is displayed this may be the first time many users encounter push.default. Explain in the warning message in a compact manner what push.default is and what the change means to the end-user to help the users decide. Signed-off-by: Greg Jacobson <[email protected]> Helped-by: Jonathan Nieder <[email protected]> Helped-by: Matthieu Moy <[email protected]> Helped-by: Marc Branchaud <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6ba01ba commit c13a5fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

builtin/push.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ N_("push.default is unset; its implicit value is changing in\n"
174174
"\n"
175175
" git config --global push.default simple\n"
176176
"\n"
177+
"When push.default is set to 'matching', git will push local branches\n"
178+
"to the remote branches that already exist with the same name.\n"
179+
"\n"
180+
"In Git 2.0, Git will default to the more conservative 'simple'\n"
181+
"behavior, which only pushes the current branch to the corresponding\n"
182+
"remote branch that 'git pull' uses to update the current branch.\n"
183+
"\n"
177184
"See 'git help config' and search for 'push.default' for further information.\n"
178185
"(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode\n"
179186
"'current' instead of 'simple' if you sometimes use older versions of Git)");

0 commit comments

Comments
 (0)