Persistent Systems Interview Question

Difference between Git revert and rebase?