What is the best way to roll-back a change set using Subversion?

前端 未结 8 1152
遥遥无期
遥遥无期 2021-02-07 10:13

I\'ve been using various source control systems for a while, but when it comes to reverting changes I\'m not yet an expert. Can someone help given this scenario:

Scenar

8条回答
  •  无人共我
    2021-02-07 10:33

    To read up on the details see: svn manual - Undoing Changes

    As described by mark you'll want to do:
    svn merge -r 5:4 file1 file2
    This means merge in the change from 4 to 5 backwards ie. undo the changes

    You could also type:
    svn merge -c -5 file1 file2
    This means apply the change that took place in commiting revision 5 backwards.

    Next you should manually review the changes.

    Finally you must commit the changes (above merges only changed your working copy).

提交回复
热议问题