DaoAI Robotics interview question

What do git reset and git rebase do?