I made changes to a few files in SVN and I want to reverse the changes I made, i.e., have my version be the one in HEAD. What is the SVN term for that (so I can find it in tortoisesvn – I’m not sure if I should revert/clean up, etc.)?
I made changes to a few files in SVN and I want to reverse
Share
What you want is to
svn revert.To revert all files in your working copy from the command line use the recursive parameter:
svn revert -R $WC_ROOT. I’m not positive if the revert command in Tortoise is recursive by default but it should have an option for it.Note that revert will not remove any files that aren’t part of the revision you have checked out. For instance, if you used
svn addto add a file that hasn’t been committed or have a file in the path of your working copy that hasn’t been added yet, they will still exist with a “?” status even after you issue your revert command.Here is some documentation on all commands available in subversion: http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.ref