Fix - you have divergent branches in Git
How to Fix "You have divergent branches" Error
The "You have divergent branches" error is a Git warning, not a hard error that stops your operation. It appears when your local branch and the corresponding remote branch have both moved forward, creating a divergent history. Git is telling you that a simple fast-forward merge is not possible and you need to choose a strategy to reconcile the differences before your next git pull
.
The error message itself provides the three main solutions: merge, rebase, or fast-forward only.