Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo svn remove

Tags:

svn

Unfortunately i ran svn remove --force <Folder_Name> before commit. It removed the local copy also. I want to retrieve my folder. Can anyone has as idea about this?

like image 748
user2226423 Avatar asked Mar 30 '13 05:03

user2226423


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 undo changes in svn?

If you want to undo all changes you made in a file since the last update you need to select the file, right click to pop up the context menu and then select the command TortoiseSVN → Revert A dialog will pop up showing you the files that you've changed and can revert.

What is revert in svn?

Reverts any local changes to a file or directory and resolves any conflicted states. svn revert will revert not only the contents of an item in your working copy, but also any property changes.

What is svn delete?

svn delete (del, remove, rm) — Delete an item from a working copy or the repository.


1 Answers

If you deleted a versioned file, you can get it back with svn revert, or svn update -r <revision> to roll back to a particular version (e.g. if you committed the deletion).

If you deleted an unversioned file, or a file with unversioned changes, you're out of luck -- the file is deleted as rm would delete it, and SVN doesn't have a record of the changes.

like image 163
nneonneo Avatar answered Sep 23 '22 22:09

nneonneo