Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I un-delete an uncommitted `svn rm foo`?

Tags:

svn

I've used svn rm foo on a number of files that I now no longer want to delete. I haven't yet committed the changes. How do I nullify the svn rm commands, either file-by-file or in one fell swoop?

I know how to restore deleted files that have been removed from the repo, but I don't want to have to commit this change, then restore.

Thanks.

like image 230
Prem Avatar asked Nov 05 '10 05:11

Prem


People also ask

How do I undo a SVN delete?

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. This will discard all changes after the selected revision.

How do I recover a deleted folder from SVN?

In the Repository Browser, click the button labeled HEAD (at the top-right corner) to show to a revision there your folder still exists, then right-click that folder and select "Copy to..." and enter the path there you want the folder to be re-created (probably the same path that is already in the text box).

How to remove a file svn?

Deleting a File or Directory 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…


2 Answers

svn revert whateveryoudeleted

like image 114
Rafe Kettler Avatar answered Sep 19 '22 21:09

Rafe Kettler


Use svn revert (http://svnbook.red-bean.com/en/1.1/re25.html)

like image 41
Franci Penov Avatar answered Sep 20 '22 21:09

Franci Penov