Git your-branch-and-origin-have-diverged Status reports both the local branch and its upstream holding separate new commits.
Reviewed for reference consistency: August 11, 2026
Code is Safe
SECUREGit has paused the operation to protect your code. No data has been lost or corrupted.
What To Know
Where Did It Fail?
Commands That Trigger This
Technical Background
The line belongs to Git's status family alongside 'ahead of' and 'behind' — each describes one shape of tracking difference. Divergence is the shape where neither side contains the other, so a single direction of syncing cannot repair it.
The two counts answer 'how big is the gap': a one-and-one split often resolves to a quick rebase, while large asymmetric counts deserve a look at the remote commits before integrating. Status never picks a strategy; it only sizes the difference.
Underlying Causes
Frequently Asked Questions
The output suggests `git pull` to integrate the remote branch; with no reconciliation configured, modern Git asks how divergent histories should be handled before it proceeds.
Yes. The counts cover all commits reachable from one side and not the other, merge commits included.
Related Git States
Git rejected your push because your branch is behind the remote, preventing a linear update.
Your local branch and the remote tracking branch have both received different commits.
A fast-forward-only integration was refused because local and fetched histories diverged.
Your local branch contains commits that have not yet been pushed to the remote server.