Pergunta de entrevista da empresa Silicon Labs

Q: What is the difference between rebase and merge in git and when to use them?