Two branches that each get new commits diverge: they share their history up to one commit, then go separate ways. That's normal on a team: a feature grows on its branch while fixes land on main.
--graph draws it, and --all includes every branch:
git log --oneline --graph --all
* a1abc4a (HEAD -> main) Offer free delivery
| * af2cdef (feature/faq) Add the FAQ
|/ ← the lines join here
* 8cf7637 Add prices ← the last commit both share
* 27abc14 Start the shopEach * is a commit; each line is a branch's path back through its parents. The Graph tab under the terminal draws the same picture.
Objectives
- Commit search on
feature/search. - Commit new opening hours on
main. - Find the commit where the branches split.