How to Revert to a Previous SVN Revision

If you ever need to revert a trunk or any other directory in Subversion (SVN) to a previous revision, or effectively remove a specific revision’s changes, simply perform a reverse merge.

Here’s the command:

svn merge -r1001:1000 .

In this command:

After executing the merge command, you’ll need to commit the changes:

svn commit -m "Reverting changes introduced in revision 1001."