Is it okay to merge individual files from one branch to another?

断了今生、忘了曾经 提交于 2019-12-25 05:33:12

问题


I have a three branch setup in TFS, DEV, PRE, and PROD. My team wants to merge individual files from DEV to PRE, so the code can enter test as they complete it. However, I've heard this is not a good idea, and that if we need to do that, we need to be using a feature branch setup. Does anyone have any recommendations on if we should or shouldn't be doing the merging at that fine level (and then when ready to move to production, we'd migrate the entire branch).


回答1:


You would typically want to merge changesets, not files. If somebody checked in a change that affected 3 files, merging just one of those files probably will break something.



来源:https://stackoverflow.com/questions/8175892/is-it-okay-to-merge-individual-files-from-one-branch-to-another

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