gpt4 book ai didi

svn - 转换为标准 svn 目录布局 tags/branches/trunk

转载 作者:行者123 更新时间:2023-12-04 15:58:23 25 4
gpt4 key购买 nike

我们正在与 SVN 合作进行一个项目。我的同事已经通过将一个简单的目录“EX1”放入存储库的根目录来启动该项目,因此没有目录 tags/branches/trunk。

我想把这个目录的内容移动到主干中,然后从中做一个标签。

我必须执行哪些命令?

最佳答案

$ cd <working copy root dir>
$ mkdir trunk branches tags
$ svn add trunk branches tags
$ svn move EX1 trunk/EX1
$ svn copy trunk tags/<tag name>
$ svn commit

然后我的建议是删除工作副本并只为一个分支/标签/主干 checkout 一个新副本,而不是整个存储库。

关于svn - 转换为标准 svn 目录布局 tags/branches/trunk,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5389421/

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