Git merge vs rebase: what is the difference?

GitHub explains the practical difference between git merge and git rebase, focusing on how each approach affects branch integration and commit history.

Overview

What git merge does

What git rebase does

When to use which (high level)