SVN 中的branches, tags和trunk

2014-11-14 litaotao 更多博文 » 博客 » GitHub »

原文链接 https://litaotao.github.io/svn-branch-trunk-tags
注:以下为加速网络访问所做的原文缓存,经过重新格式化,可能存在格式方面的问题,或偶有遗漏信息,请以原文为准。


1. 直接上正文

  正文就是,关于这点,SO已经有多答案了,下面我引用一下投票最多的答案。

  • Trunk:would be the main body of development, originating from the start of the project until the present.
  • Branch: will be a copy of code derived from a certain point in the trunk that is used for applying major changes to the code while preserving the integrity of the code in the trunk. If the major changes work according to plan, they are usually merged back into the trunk.
  • Tag: will be a point in time on the trunk or a branch that you wish to preserve. The two main reasons for preservation would be that either this is a major release of the software, whether alpha, beta, RC or RTM, or this is the most stable point of the software before major revisions on the trunk were applied.

2. 我是怎么理解的

  • Trunk: 你的现女友,你会付出很多东西在她身上,期待美好的结果,但时不时也会吵吵闹闹,出现一些意外情况;
  • Branches:你的前女友们,按时间排序,她们都有很多相似的东西,那就是隐藏在你最深处的东西,你的Kernel,可以说是你的爱情观、人生观、事业观等等啦;
  • Tags:让你记忆尤深的前女友们,她们可不像你这样善变,分手后依然爱你,甚至当你有一天被现女友携款潜逃将你抛弃后,你还能回去找她们,kiss她们的香唇。

3. 一些资源

扫一扫

2014-11-14-svn-branch-trunk-tags.md