恢复分支或从主干合并恢复?
关于如何将恢复从主干传播到测试/阶段和生产分支,是否存在普遍接受的做法?
我的场景应该很常见:
- rev 1 启动测试分支
- rev 2 启动 prod 分支
- rev 3 将更改提交到 trunk
- rev 4 合并 trunk 来测试
- rev 5 将 trunk 恢复到 rev 1
我现在会
a) 合并 trunk 来测试
还是
b) 恢复测试到第 1 版
?
Is there a commonly accepted practice on how to propagate a revert from trunk to test/stage and production branches?
My scenario should be quite common:
- rev 1 start test branch
- rev 2 start prod branch
- rev 3 commit change to trunk
- rev 4 merge trunk to test
- rev 5 revert trunk to rev 1
Would I now
a) merge trunk to test
or
b) revert test to rev 1
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道“普遍接受”,但因为这并不重要,为了简单起见,我个人希望我的测试分支版本与主版本的距离不要超过必要的范围,所以我会合并主干来测试。
I don't know about "commonly accepted", but since it doesn't matter, for simplicity, I personally would want my test branch rev to be no further from the main rev than necessary, so I would merge trunk to test.