在 TortoiseSVN 中删除一个分支

在 TortoiseSVN 中删除一个分支

问题描述:

如何在 TortoiseSVN 中删除一个分支?

How do I delete a branch in TortoiseSVN?

  1. 我可以简单地删除分支的工作副本和存储库中的文件夹吗?
  2. 是先删除分支的本地工作副本,还是通过Repository Browser删除分支文件夹?
  1. Can I simply delete the working copy of the branch and the folder in the repository?
  2. Should the local working copy of the branch first be deleted, or the branch folder through the Repository Browser be removed?

右键单击任意文件夹,选择Repo-browser";并在左侧面板上找到您的分支.从那里,您可以发出删除"命令.命令直接在存储库上:

Right click on any folder, select "Repo-browser" and find your branch on the left panel. From there, you can issue a "Delete" command directly on the repository:

据我所知,您不能对工作副本的顶层文件夹*发出删除命令,可能是因为这会有效地破坏工作副本.

As far as I know, you cannot issue a delete command on the top folder* of the working copy, probably because that would effectively destroy the working copy.

(*) 如果它是 inner 文件夹,您当然可以从工作副本中删除该分支,即您签出例如https://svn.example.com/repo/project/branches 而不是 https://svn.example.com/repo/project/branches/feature-blah.

(*) You can of course remove the branch from the working copy if it's an inner folder, i.e., you check out e.g. https://svn.example.com/repo/project/branches instead of https://svn.example.com/repo/project/branches/feature-blah.