Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undelete in SVN working copy

Tags:

svn

Having just called:

svn rm someDirectory

but not having committed, how do I undelete the directory?

like image 874
Joel Avatar asked Jun 18 '09 07:06

Joel


People also ask

How do I undelete in SVN?

To revert a deleted file in SVN. Find the revision number just before delete (say 341). Then revert that file alone to that revision number. This gets another local copy, but the file remains "deleted" in the repository.

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.

What does Revert command do in SVN?

svn revert will revert not only the contents of an item in your working copy, but also any property changes. Finally, you can use it to undo any scheduling operations that you may have performed (e.g., files scheduled for addition or deletion can be “unscheduled”).

Can I undelete a file in Linux?

Linux systems offer Trash/Recycle Bin facilities for softly deleted data. So if you've deleted files using the Delete button on your keyboard, you can instantly get those back by visiting the Trash and restoring them.


1 Answers

svn revert --recursive <folder_name>

Will back out any changes recursively from folder_name downwards

like image 92
PaulJWilliams Avatar answered Oct 23 '22 07:10

PaulJWilliams