Persistent Systems interview question

Difference between Git revert and rebase?