Git merge vs rebase
Both bring work from one branch into another. Merge keeps both histories and ties them together with a merge commit that has two parents. If your branch has nothing of its own, there is nothing to tie: Git just slides your branch forward. That is a fast-forward.
Rebase replays your commits on top of the other branch, one by one, as new commits with new ids (E becomes E′). History ends up as one straight line. The old commits are left behind, so never rebase commits other people already have.