CVS:用分支替换 HEAD

发布于 2024-07-06 01:09:37 字数 29 浏览 5 评论 0原文

如何用分支替换 CVS 存储库的 HEAD?

How do I replace the HEAD of a CVS repository with a branch?

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

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

发布评论

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

评论(1

坏尐絯℡ 2024-07-13 01:09:37

查看此页面,其中非常容易理解 CVS 中的分支和合并

http://kb.wisc.edu/middleware/page.php?id=4087

它还包含一个用指定分支替换 HEAD 的示例

用另一个分支替换一个分支

标记分支的末尾

cvs tag merge_NEW_BRANCH

切换回要替换的分支

到头部:

cvs up -A

到分支:

cvs up -r OLD_BRANCH

进行替换:

替换头部

cvs up -jHEAD -j NEW_BRANCH

替换分支

cvs up -jOLD_BRANCH -j NEW_BRANCH

如果需要,请提交更改和标记。

Check out this page, which has a pretty easy to follow walk through of branching and merging in CVS

http://kb.wisc.edu/middleware/page.php?id=4087

It also includes an example of replacing HEAD with a specified branch

Replacing One Branch With Another

Tag the end of your branch

cvs tag merge_NEW_BRANCH

Switch back to the branch you're replacing

To head:

cvs up -A

To branch:

cvs up -r OLD_BRANCH

Do the replace:

Replace head

cvs up -jHEAD -j NEW_BRANCH

Replace branch

cvs up -jOLD_BRANCH -j NEW_BRANCH

Commit changes and tag if you need to.

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