Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete a branch in TortoiseSVN

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 copy of the branch first be deleted, or the branch folder through the Repository Browser be removed?
like image 547
John Avatar asked Jun 24 '10 07:06

John


People also ask

How do I delete a remote branch in svn?

Find the branch folder you want to delete, right-click it, and select "Delete." Enter your commit message, and you're done.

How do I permanently delete files from svn?

To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…

Can I rename a branch in svn?

Because branches and tags are ordinary directories, the svn move command can move or rename them however you wish.


1 Answers

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:

Repository browser screenshot

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.

(*) 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.

like image 92
Álvaro González Avatar answered Oct 17 '22 14:10

Álvaro González