How to rollback to the previous version in svn

来源:互联网 发布:2016开淘宝店铺流程图 编辑:程序博客网 时间:2024/05/19 18:12

  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.

原创粉丝点击