删除SVN分支 [英] Deleting an SVN branch

查看:246
本文介绍了删除SVN分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个名为功能的SVN项目的分支,现在,每当我尝试更新该项目时,它都会带一个features文件夹,其中包含该分支中项目的另一个副本。有没有一种方法可以从存储库中完全删除分支,以免再发生这种情况?

I created a branch of an SVN project called 'features', and now whenever I try to update said project, it brings with it a features folder, which contains another copy of the project from the branch. Is there a way to remove the branch from the repository completely so that this doesn't happen any more?

推荐答案

确定: svn rm 不需要的文件夹,然后提交。

Sure: svn rm the unwanted folder, and commit.

为避免将来再次出现这种情况,请遵循建议的布局

To avoid this situation in the future, I would follow the recommended layout for SVN projects:


  • 将您的代码放入
    / someproject / trunk 文件夹中(如果您只想在存储库中放入一个
    项目,或者只是
    / trunk

  • 已创建分支为 / someproject / branches / somebranch

  • 将标签置于 / someproject / tags

  • Put your code in the /someproject/trunk folder (or just /trunk if you want to put only one project in the repository)
  • Created branches as /someproject/branches/somebranch
  • Put tags under /someproject/tags

现在,当您签出工作副本时,请确保只签出 trunk 或某个单独的分支。 不要在包含所有分支的巨大工作副本中检查所有内容。 1

Now when you check out a working copy, be sure to check out only trunk or some individual branch. Don't check everything out in one huge working copy containing all branches.1

1 除非您知道自己在做什么,否则您将知道如何创建浅层工作副本。

这篇关于删除SVN分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆