Delete branch

How to delete a branch in TortoiseSVN?

  1. Is it possible to simply delete the working copy of the branch and folder in the repository?
  2. Should I first delete the local working copy of the branch or delete the branch folder through the Repository Browser ?
+53
svn tortoisesvn
Jun 24 '10 at 7:35
source share
3 answers

Right-click on any folder, select "Repo-browser" and find your branch in the left pane. From there, you can execute the "Delete" command directly in the repository.

As far as I know, you cannot execute the delete command in the top folder * of the working copy, possibly because it will effectively destroy the working copy.

(*) Of course, you can delete a branch from a working copy if it is an internal folder, i.e. you https://svn.example.com/repo/project/branches/feature-blah e.g. https://svn.example.com/repo/project/branches instead of https://svn.example.com/repo/project/branches/feature-blah .

+86
Jul 23 2018-10-23T00:
source share

The SVN book ("Version Control with Subversion") explains how to delete and restore branches .

Although it offers remote deletion, for example

 $ svn delete http://svn.example.com/repos/calc/branches/my-calc-branch \ -m "Removing obsolete branch of calc project." 

You can also do this locally (using the TortoiseSVN> Delete command).

As mentioned in the book, you can always restore branches, so you will not get any unexpected consequences.

+12
Jun 24 2018-10-10T00:
source share

How to delete a branch in TortoiseSVN?

There are several ways to do this, but after many years of working with Turtle, I found that deleting the repository through the browser is the least troublesome way.

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

enter image description here

The browser looks like this:

enter image description here

Right-click on an item and select it to delete. You will then be asked to provide summary information about the commit. Enter the rationale and click OK.

Is it possible to simply delete the working copy of the branch and folder in the repository?

If you have a .svn branch, that is, only that branch with its own .svn folder .svn then technically there is no need to delete the working copy. The order of operation does not matter in this scenario.

Should I first delete the local working copy of the branch or delete the branch folder through the repository browser?

If the part you delete is checked as part of a larger tree — for example, you have entire /branches folders Issued in one place — I recommend that you delete the working copy updates via the Repo browser and then SVN to pick up the deletion.

+3
Feb 13 '18 at 14:13
source share



All Articles