How to rollback to the previous version in svn

   
How to rollback to the previous version in svn
 
 
In the Subversion, if you want to rollback your current workspace to the previous version, first you can type:

svn cat -r PREV filename > filename

Now, the file status is M, you can commit your modification.

Second, you can :

svn up -r VERSION_NUMBER

eg:
svn up -r 50
Then you can change  your  workspace  to  version 50. Note: you cannot commit your modification in this situation.

你可能感兴趣的:(SVN,File,UP,subversion)