Reverting a deleted file from SVN

How do I revert back a deleted file from my SVN repository?

Use the following command to retrieve the lost file:

svn copy https://host/repo/file.txt@4728 ./

Now that file is sitting in your local directory.  Now you just need to simply commit it.

svn commit –message ‘Restoring file.txt from revision 4728.’ ./

Posted in , and tagged , .

Leave a Reply

Your email address will not be published. Required fields are marked *