在TFS中,是否应该为生产版本标记或创建分支? [英] In TFS, should I label or create a branch for a production release?

查看:90
本文介绍了在TFS中,是否应该为生产版本标记或创建分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在部署到生产环境时,我应该在代码上标记标签还是为生产环境中的代码创建分支?

When making a deployment to production, should I mark my code with a label or create a branch for the code that's in production?

推荐答案

在TFS中,我会有一个Release分支,上面有一个标签,用于标识要发布到生产中的特定版本。

In TFS, I would have a Release branch with a label identifying the specific version being released to production.

这暗示您还有其他分支,我可能建议您以下

Which would imply you have other branches may I suggest the following


  • 三个主要分支:Main,Develop和&释放。

  • 一个用于当前射击的修补程序分支。

  • 0到N个主要功能分支,以遏制开发中断。


  • 主分支

    • 包含最新的稳定版本

    • 标签/标签每个版本

    • Main Branch
      • Contains the latest stable builds
      • Tag/Label each release

      • 从主要部门分支

      • 完成大部分工作的地方

      • 发布前合并回Main


      • 从以下其中一个分支:

        • Develop分支

        • 或Main分支(这可能更好,因为它是稳定)


        • 合并到开发分支

        • 或合并到Main分支,然后向前集成(FI-这是一个合并从父母到孩子ild)开发


        • 从Main分支

        • 合并回Main

        • 转发集成合并到Develop

        • 用于允许Main保持稳定

        • Branched from Main
        • Merged back into Main
        • Forward integrate merge to Develop
        • Used to allow Main to remain "stable"

        • 从Develop分支

        • 并入Develop

        • 用于可能破坏常规开发路径的主要功能

        引用:


        • 另一个堆栈溢出问题:何时使用标签标签和何时分支特别是马丁·伍德沃德(Martin Woodward)的答案

        • 源代码控制方法由Eric Sink

        • 成功的Git分支模型,作者:Vincent Driessen

          • 这包含一个很好的分支模型图形

          • another stack overflow question: when-to-use-a-tag-label-and-when-to-branch especially Martin Woodward's answer
          • Source Control How To by Eric Sink
          • A successful Git branching model by Vincent Driessen
            • This contains a very good graphic of a branching model

            这篇关于在TFS中,是否应该为生产版本标记或创建分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆