Friday, April 23, 2010

Subversion: How to revert to a previous revision

Assume that your current revision is 100 and you want to revert the repository to the revision 90. Then you can use the following command,
$ svn merge -rHEAD:90 .
As you have used . at the end, it will revert your local repository. Once commited you will get a new revision such as 101 which is same as revision 90. You can do this directly to a remote repository as well. In that case, replace . with repository url.

No comments:

Post a Comment