We don't want to start by recommending a permanent configuration, but a temporary solution so they start training their fingers and maybe learn how to do a rebase. So we start with the commands. Also, we need to be clear about what we mean by "specifying"; merge, or rebase. Moreover, it's better use --global in the configuration commands like we did with push.default. And finally, point to the documentation that explains what is a non-fast-forward, and how to solve it: git help fast-forward Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx> --- builtin/pull.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/builtin/pull.c b/builtin/pull.c index e304b22bd8..27ce2f2183 100644 --- a/builtin/pull.c +++ b/builtin/pull.c @@ -979,18 +979,19 @@ static int get_can_ff(struct object_id *orig_head, struct object_id *orig_merge_ static void show_advice_pull_non_ff(void) { - advise(_("Pulling without specifying how to reconcile divergent branches is\n" - "discouraged. You can squelch this message by running one of the following\n" - "commands sometime before your next pull:\n" + advise(_("Pulling without specifying how to reconcile divergent branches is discouraged;\n" + "you need to specify if you want a merge, or a rebase.\n" "\n" - " git config pull.mode merge # the default strategy\n" - " git config pull.mode rebase\n" - " git config pull.mode fast-forward\n" + " git pull --merge # the default\n" + " git pull --rebase\n" "\n" - "You can replace \"git config\" with \"git config --global\" to set a default\n" - "preference for all repositories. You can also pass --rebase, --merge,\n" - "or --ff-only on the command line to override the configured default per\n" - "invocation.\n")); + "You can quell this message by running one of the following commands:\n" + "\n" + " git config --global pull.mode merge\n" + " git config --global pull.mode rebase\n" + " git config --global pull.mode fast-forward\n" + "\n" + "For more information check \"git help fast-forward\".")); } int cmd_pull(int argc, const char **argv, const char *prefix) -- 2.32.0.36.g70aac2b1aa