Reverting in Subversion Repositories

It is sometimes useful to revert to the revision of a file that has already been checked in:

  1. Retrieve previous revision X of file FILE:

svn cat -r X FILE >FILE

  1. Commit previous revision to repository:

svn commit --message "reverted to rX" FILE

Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.