在当前存储库中创建 SVN 主干
我们一直在使用位于文件夹根目录中的存储库,一切都很好。然而,自从迁移站点以来,我们需要对一些工作进行分支,但由于缺乏主干而无法这样做。
我的问题是,如何在当前目录结构中创建主干并将所有当前内容移入其中?
We've been working with a repository which has been been located in the folder root and everything has been fine. However since moving the site live we need to branch some of the work but are unable to do so due to the lack of a trunk.
My question is, how do I create a trunk within the current directory structure and move all current content into it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
trunk
和一个branch
文件夹trunk
中不要'不要忘记提交这些修改...然后您可以
分支
您的主干。附加说明:如果您的文件夹包含很多文件,那么您最好将这些文件移动到存储库上,请注意您的计算机。这样会快很多!不过之后您将必须更新。
trunk
and abranch
folder in your roottrunk
Don't forget to commit those modifications... You can then
branch
your trunk.Additional note : If your folder contains a lot of files, then you will be better of moving the files on the repository, note your computer. This will be way faster! You will have to update after that though.
这非常简单。你几乎只做你说你想做的事。查看该项目。创建一个新目录并将其命名为“trunk”。将所有文件移动到这个新目录中。然后提交。
如果您使用 Eclipse,它“知道”您已经创建了新目录并移动了文件,并向 SVN 发送正确的消息。
如果您使用 Tortoise,您可以在 Repo 浏览器会话中完成这一切。
如果您使用命令行 SVN,则需要使用“svn mkdir”创建目录并使用“svn move”移动文件。不要尝试使用操作系统命令进行创建和移动——SVN 不会知道您已经完成了它。
It's very straightforward. You pretty much do just what you said you want to do. Check out the project. Create a new directory and call it "trunk". Move all the files into this new directory. Then commit it.
If you're using Eclipse, it "knows" that you've created new directories and moved files and sends the correct messages to SVN.
If you use Tortoise, you can do it all within a Repo-browser session.
If you're using command-line SVN, you need to create the directory using the "svn mkdir" and move the files using "svn move". Don't try to do the creates and the moves with OS commands -- SVN won't know that you've done it.