-2

From git pull docs, we have

--rebase[=false|true|merges|preserve|interactive]

But what is its default value taken if we just use git pull --rebase origin master?

Number945
  • 4,631
  • 8
  • 45
  • 83
  • 1
    Note that the long list of alternatives here is relatively new. Very old Git had only `--rebase=true` or `--rebase=false`. With binary options like this, the default when it's specified is `true`. Therefore CodeCaster's answer is correct. I'd recommend filing a documentation bug: the docs should have been updated when pull's rebase option grew all these additional values. – torek Nov 19 '19 at 17:57

1 Answers1

4

The default is true. I can't find any documentation for this, but it is.

The option false is for when you have configured your repo, your branch or your system to always rebase when pulling.

The other options are explained in the docs.

CodeCaster
  • 147,647
  • 23
  • 218
  • 272