What are the perils of cherry picking in git between two branches A and B if I am never going to merge between them?

一曲冷凌霜 提交于 2019-12-08 04:12:55

问题


I have read the excellent series of posts by Raymond Chen titled Stop cherry-picking, start merging

And I totally understand that cherry-picking is evil if we are going to merge the branches afterwards.

But suppose I never merge the two branches. Are there any perils of cherry-picking in this case?


回答1:


Not exactly "none", but low risk.

The only issue remains to pick up a change depending on another change that is not cherry-picked: the resulting merge would not work in the destination branch while it was working on the source branch.
That is called "ignoring functional dependencies".



来源:https://stackoverflow.com/questions/52656588/what-are-the-perils-of-cherry-picking-in-git-between-two-branches-a-and-b-if-i-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!