When I run git pull origin master, I get the following warning:
warning: Pulling without specifying how to reconcile divergent branches is discouraged.
You can squelch this message by running one of the following:
git config pull.rebase false # merge (default)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only
The pull still completes successfully, but I’m unsure if I should be doing something differently.
From what I understand, this means you have divergent branches and need to specify how to reconcile them, either through merge, rebase, or fast-forward.
Which option is safest for everyday use when collaborating with others?
Should I set a global default or decide per project? Would appreciate a bit of clarity here.