How to undo removal of a file in svn

svn

Solution

You could try a reverse merge, but if it's a single file, svn copy might be easier:

svn copy file:///var/svn/repos/test/far-away -r 6 near-here

(Search that page for 'recommended')

Problem

duplicate: What’s a simple way to undelete a file in subversion? What is the best way to undo removal of a file and keep the file history. I've removed a file by accident, and commited it along with other changes. I can get an older revision of the file and add it to svn, but I think this approach will lose change history. How do I keep the history?

Original source

Related problems