是否可以将单个文件从一个分支合并到另一个分支?
我在 TFS、DEV、PRE 和 PROD 中设置了三个分支。我的团队希望将各个文件从 DEV 合并到 PRE,以便代码可以在完成后进入测试。但是,我听说这不是一个好主意,如果我们需要这样做,我们需要使用功能分支设置。有没有人对我们是否应该或不应该在这个精细级别上进行合并有任何建议(然后当准备好转移到生产时,我们将迁移整个分支)。
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您通常希望合并变更集,而不是文件。如果有人签入了影响 3 个文件的更改,则仅合并其中一个文件可能会破坏某些内容。
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.