Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Deleted a file from a repository?

what is the correct way to restore a deleted file from svn

From Tortoise SVN

svn merge -c -[rev num that deleted the file] http://

So an example:

svn merge -c -12345 https://svn.mysite.com/svn/repo/project/trunk
             ^ The negative is important

    Use the Tortoise SVN copy functionality to revert committed changes:

    Right click the parent folder that contains the deleted files/folder
    Select the “show log”
    Select and right click on the version before which the changes/deleted was done
    Select the “browse repository”
    Select the file/folder which needs to be restored and right click
    Select “copy to” which will copy the files/folders to the head revision