What does "cherry" mean in git paint?

What is the meaning of the word cherry in git-cherry ?


Besides the fruit, I only seem to be a word in a cherry expression (also present in git with git-cherry-pick ), which means selective selection of something (right?).

It doesn't look like the cherry in git-cherry is related to the fruit or the cherry pick.

I am Brazilian, so the subtle subtleties of the English language are not so obvious.

+7
git git-cherry-pick git-cherry
source share
1 answer

It is called cherry-pick because the task is like a set of cherries. You look at a bunch of commits (in a real tree, leaves and branches) and carefully select some of them. This delicate work is just like picking cherries in the real world.

git-cherry is associated with git-cherry-pick . git-cherry reports that are committed do not exist in the branches. In other words, it returns which commits can be cherry-pick ed, i.e. Commits are cherries (so you can select them).

+8
source share

All Articles