WD interview question

How does a cherry pick works in git