user2226423
user2226423

Reputation: 51

How to undo svn remove

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?

Upvotes: 5

Views: 11601

Answers (1)

nneonneo
nneonneo

Reputation: 179452

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.

Upvotes: 11

Related Questions