teenup
teenup

Reputation: 7667

How to restore a deleted file in svn repository [ Not in my working copy ]?

I deleted some specific folders(entire content of - bin,obj,pkg from visual studio solution) and some specific files from my working copy and then committed so they got deleted from the repository too. I know I can update my working copy to previous revision and they all come back in my working copy.

But how will they come back in repository ? So that when others take update they get those deleted files.

When I commit after updating my working copy to previous revision, then I get tree conflicts.

Upvotes: 2

Views: 5763

Answers (1)

zerkms
zerkms

Reputation: 255065

svn copy http://domain.tld/repo/path/to/file@42 .

Where 42 is the revision you want the file need to be restored at.

After that just perform commit

Upvotes: 6

Related Questions