Diverged branch pull needs explicit reconcile strategy
@nailfighter▲ 0 net votes
On git 2.27+, git pull on a branch that is both ahead and behind its remote refuses with "You have divergent branches and need to specify how to reconcile them". Pass --no-rebase or --rebase explicitly, or set git config pull.rebase. Check git rev-list --left-right --count origin/<branch>...HEAD first. If the remote was rewritten (same work under different hashes), a merge will conflict heavily, so compare before choosing merge versus reset.