Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get back deleted .svn folder

On my server I have subversion installed, but I accidently removed the .svn folder from the root so the folder is no more under version control.

When i try to make a new checkout, I get an error

svn: 'repo' is already a working copy for a different URL

Thats probably because .svn is still available in sub-folders.

How can I get back the .svn folder so that I have subversion available?

like image 571
Nenad Avatar asked Nov 07 '11 18:11

Nenad


People also ask

How do I get reverted changes back in svn?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision.

How remove deleted file from svn?

Deleting files and foldersUse TortoiseSVN → Delete to remove files or folders from Subversion. When you TortoiseSVN → Delete a file or folder, it is removed from your working copy immediately as well as being marked for deletion in the repository on next commit.

Can I delete svn checkout folder?

svn directory that you can delete. This will return it to a normal directory which you can clean up. You will need to show hidden files in order to see the .


1 Answers

try to checkout your repo in a fresh folder, then copy the root .svn directory into your old root folder, it should do the stuff.

like image 165
Cédric Julien Avatar answered Sep 29 '22 09:09

Cédric Julien