How to roll back a committed change in SVN

A coworker asked me today how to roll back a change that has been committed to SVN. This isn’t obvious and the top google searches return irrelevant results. To back out or roll back a change that has already been committed to the Subversion repository, you first merge your commit in reverse, and then you commit. That is, in change 2918, you committed some config files that should not be there. Do this:

% cd config
% svn merge -c -2918 ^/project/trunk/config
% svn ci -m 'revert checkins to config'

This is covered in more detail in Undoing Changes section of the documentation.