cherry 用于查找尚未应用于上游的提交,但其本身的意思是「樱桃」,为蔷薇科植物。
那么,这个 cherry 为什么会有这种意思呢?
去有道上查专业解释,也没看到与计算机有关的内容。
1
wd 2021-09-13 07:12:01 +08:00 via iPhone
你是指 cherry pick 吗?
|
2
chekun 2021-09-13 07:32:36 +08:00
cher·ry-pick
/ˈCHerēˌpik/ verb verb: cherry-pick; 3rd person present: cherry-picks; past tense: cherry-picked; past participle: cherry-picked; gerund or present participle: cherry-picking; verb: cherrypick; 3rd person present: cherrypicks; past tense: cherrypicked; past participle: cherrypicked; gerund or present participle: cherrypicking choose and take only (the most beneficial or profitable items, opportunities, etc.) from what is available. "the company should buy the whole airline and not just cherry-pick its best assets" |
4
heyjei 2021-09-13 08:06:44 +08:00 via Android 4
git cherrypick 指的是在一篮樱桃中挑选出又大又红的,放进另外一个篮子
git cherry 表示这个篮子比那个篮子多了哪些樱桃,确认下我挑选出来的樱桃,真的放进另外一个篮子了。 |
5
boboliu 2021-09-13 08:09:17 +08:00 via Android
cherry 在 git 里的词源就是 cherry-pick,后者是个习语
|
6
mcone 2021-09-13 09:45:55 +08:00
@AndyAO 你说的`git cherry`,就是从`git cherry-pick`派生(引申)出来的
> 我说的是`git cherry`,不是`git cherry-pick` |
8
AndyAO OP 感觉这是典型的 linux 式起名方法,很短但很不直观。
|