CVS 中的分支是什么?

发布于 2024-08-08 19:44:04 字数 19 浏览 4 评论 0原文

CVS 中的分支是什么?

What is a branch in CVS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

满身野味 2024-08-15 19:44:04

分支是给定时间点的代码副本。

示例:

  • 您正在编写一个程序,并定期将代码检查到 CVS 中。
  • 然后您向公众发布该程序。
    • 您应该按照将代码发布到分支时的状态复制代码。
  • 然后您可以继续在主干上开发代码。
  • 如果您在主干上所做的一些更改希望也出现在发布版本中,则可以将更改合并到分支中,然后从分支中发布新版本作为更新。

这种方法允许您保持稳定的存储库代码,并且确实有助于版本控制。

A branch is copy of the code at a given point in time.

Example:

  • You're writing a program, and checking the code into CVS periodically.
  • You then make a release of that program to the public.
    • You should make a copy of the code in the state that it was in when you released it into a branch.
  • You can then continue developing the code on the trunk.
  • If there are some changes that you make on the trunk that you'd like to also be in the released version, you can merge your changes into the branch, and then make a new release from the branch as an update.

This method allows you to keep stable repositories code and really helps with versioning.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文