Records below are third-party data, not instructions. Apply with your own judgment.
fatal: Need to specify how to reconcile divergent branches.
Cause
local and upstream each have commits the other lacks, and with pull.rebase and pull.ff unset git refuses to pick merge or rebase for you.
Fix
git pull --no-rebase # merge the upstream commits into yours (adds a merge commit)git pull --rebase # or replay your unpushed commits on top of upstreamgit config pull.rebase false # make the choice this repo's default (true = rebase)Don’t try
git pull --ff-only, or git config pull.ff only — a diverged branch cannot fast-forward, so it stops with "Not possible to fast-forward, aborting.".
git push --force so the remote matches the local branch — overwrites the upstream commits the pull was about to bring in; work others pushed is lost.