I have an updated git branch on my local machine. But when I attempt at merging in master
:
git pull
git fetch origin
git pull origin master
I get an error demanding a rebase:
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:
...
fatal: Need to specify how to reconcile divergent branches.
But on the GitHub website, the remote branch will merge automatically. So the remote branch is consistent with master (doesn't require rebasing), but the local branch (which should be identical) does.
Am I missing some update step?
Git config:
> git config -l
credential.helper=osxkeychain
init.defaultbranch=main
user.name=<Me>
user.email=<Email>
http.schannelcheckrevoke=false
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
core.hookspath=.husky
remote.origin.url=<RemoteUrl>
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.<*FeatureBranch*>.remote=origin
branch.<*FeatureBranch*>.merge=refs/heads/<*FeatureBranch*>
> git config --global -l
user.name=<Me>
user.email=<Email>
http.schannelcheckrevoke=false
> git config --local -l
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
core.hookspath=.husky
remote.origin.url=<RemoteUrl>
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
branch.<*FeatureBranch*>.remote=origin
branch.<*FeatureBranch*>.merge=refs/heads/<*FeatureBranch*>