SVN: How to revert (roll back) to a previous version ?

One reason to use SVN tool is to be able to revert to a previous version. How do we do that ?
Imagine that the latest version (the one on the HEAD) is not what you want anymore, but that the revision 13 is the good one. Just type:

svn merge -rHEAD:13

Commit the code, and you’ve go the code as it was at revision 13.

Please follow and like us:
This entry was posted in Computer Science and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.