Doist interview question

What does `git rebase` do?