How to Roll Back Commits to an Earlier Version of a Repository in SVN
I’ve always wanted to know how to do this, and for some reason I always had a hard time finding out how. I needed to rollback a change I had committed to my SVN repository.
The way you rollback to an earlier version of your repository is to do a reverse merge.
Here’s the example off the SVN site. It will do a reverse merge, and roll back the commit you made in version 303.
` $ svn merge -c -303 http://svn.example.com/repos/calc/trunk U integer.c
$ svn status M integer.c
$ svn diff …
verify that the change is removed
$ svn commit -m “Undoing change committed in r303.” Sending integer.c Transmitting file data . Committed revision 350.`
I found the info in the common use cases example of merging in the nightly SVN docs.If you found this post helpful, please consider sharing to your network. I'm also available to help you be successful with your distributed systems! Please reach out if you're interested in working with me, and I'll be happy to schedule a free one-hour consultation.