svn rollback / update / cancel a version of the command Detailed

1, cancel the file:

svn revert file name

2, cancel the catalog

svn revert --depth = infinity directory name

3, version rollback

Method 1: svn merge with

1) First svn up, to ensure the update to the latest version, such as 20;

2) then use svn log, version history, find the version you want to restore, such as 10, if you want a more detailed understanding of the situation, you can use svn diff -r 10:20 [file or directory] If you want to understand all the files not, directly svn diff -r 10: 20 ''

3) roll back to version 10: svn merge -r 20:10 [file or directory], the order between note the version number, this is called a reverse merger

4) the difference svn diff -r view the current working version of a file, such as test.cpp and version number in the file 10 10 test.cpp, there is a difference then manually change.

5) If no difference is submitted: new version svn ci -m 'back to r 10, xxx' [file or directory], then SVN library generated, such as 21

4, with the opening svn merge command rollback

1) ensure that we got the latest code: svn up

2) Then find the exact version number to be rolled back: svn log

Assumptions based SVN log log detected want to roll back the version number is 25, something here may be files, directories, or entire project, if you want a more detailed understanding of the situation, you can use svn diff -r 28:25 '', svn log -v -r 34 to view the current folder modify a version of the file list information

3) roll back to version 25:

After svn merge -r 28:25 '', to be safe, the results again confirm svn diff rollback '' found correct, submit

4) Submit rollback: svn ci -m 'revert revison from r28 to r25, because of ...'

The first character meaning:

A: Added

D: Deleted

U: Updated

C: Merge Conflicts

G: Merge success

E: already exists

R: has been replaced

 

Guess you like

Origin www.cnblogs.com/wangyue0925/p/11095079.html