Delete a branch

前端 未结 3 1929
长发绾君心
长发绾君心 2021-02-01 00:27

How do I delete a branch in TortoiseSVN?

  1. Can I simply delete the working copy of the branch and the folder in the repository?
  2. Should the local working cop
3条回答
  •  面向向阳花
    2021-02-01 01:06

    How do I delete a branch in TortoiseSVN?

    There's more than one way to do this, but after years of experience with Tortoise I have found deleting via the Repository Browser to be the least troublesome way.

    Right click on the working copy and open the Repo-browser:

    The browser looks like this:

    Right click on the item and choose to delete it. You'll then be asked for a commit summary. Enter your rationale and click OK.

    Can I simply delete the working copy of the branch and the folder in the repository?

    If you have the branch checked out on its own, i.e. just that branch with its own .svn folder then technically there is no need to delete the working copy. The order of operation doesn't matter in this scenario.

    Should the local working copy of the branch first be deleted, or the branch folder through the repository browser be removed?

    If the item you are deleting is checked out as part of a bigger tree - for example, you have the entire /branches folder checked out in one place - I recommend deleting via the Repo-browser and then svn updating the working copy to pick up the deletion.

提交回复
热议问题