I recently started using a new machine and noticed and noticed this error hint when attempting to push to a branch after I resolved something online earlier on Github and forgot to pull.
So I pulled, and usually when I do this, I would get a list of the files that had changes and need to resolve them, add them, and then push.
However something different happened today when encountering this. I got this message
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint: git config pull.rebase false # merge
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.
Whenever setting up a new machine, I've never seen this before. This is my .gitconfig on two other machines that I've not seen this message on, and the one I just did:
[user]
name = my name
email = my email
[format]
numbered = auto
[color]
branch = yes
diff = auto
pager = yes
status = auto
I've done this many times and I suddenly have amnesia I do not recall this hint/error from git ever (6 years). Is this new? Maybe I can look at history of gits src? If not, what's the default?