Git · Middle · Question 7 of 75

What does git cherry-pick <hash> do?

Explanation

The original commit stays where it was; you get a copy with a new hash. A typical use is backporting a fix from main to a release branch.

Further reading

Problem with a question

Git · Middle · question 7

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz