Subversion: Revert Previous Commit

To revert to your previous commit in Subversion, you’ll need the current revision number and the previous revision number, then:

svn update
svn merge -r 756:742 .
svn commit -m "Rolled back to previous commit (r742)"

 

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.