Having just called:
svn rm someDirectory
but not having committed, how do I undelete the directory?
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.
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.
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”).
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.
svn revert --recursive <folder_name>
Will back out any changes recursively from folder_name downwards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With