gpt4 book ai didi

svn - SVN 中标签和分支有什么区别?

转载 作者:行者123 更新时间:2023-12-02 12:46:52 25 4
gpt4 key购买 nike

我使用 SVN 分支和 TRUNK 多年,但从未使用过标签

有人可以建议它们之间的主要区别是什么吗?标记的主要目的是什么?

最佳答案

这是来自 http://svnbook.red-bean.com/en/1.5/svn.branchmerge.tags.html

But wait a moment: isn't this tag creation procedure the same procedure we used to create a branch? Yes, in fact, it is. In Subversion, there's no difference between a tag and a branch. Both are just ordinary directories that are created by copying. Just as with branches, the only reason a copied directory is a “tag” is because humans have decided to treat it that way: as long as nobody ever commits to the directory, it forever remains a snapshot. If people start committing to it, it becomes a branch.

从技术上讲,它与分支相同,但从概念上讲,我们将其视为快照。在我的 svn 存储库中,我知道分支将包含可能已合并或未合并到主干中的大型功能,但我仅使用标签来标记发布版本。

关于svn - SVN 中标签和分支有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6938486/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com