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.
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.
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).
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…
svn revert whateveryoudeleted
Use svn revert (http://svnbook.red-bean.com/en/1.1/re25.html)
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