Diverged branches in Git occur when two branches that originally shared a common commit have since progressed differently, with each branch having commits that the other does not.
How Does This Happen?
Divergence usually happens when:
- Two branches share a common history.
- Commits are made separately to both branches without merging them.
- The branches evolve independently, resulting in separate commit histories.