Posted By

cczona on 12/04/10


Tagged

svn subversion


Versions (?)

Undoing (reverse merging) changes/versions in Subversion


 / Published in: Bash
 

URL: http://svnbook.red-bean.com/en/1.0/ch04s04.html#svn-ch-4-sect-4.2

[See also: http://snipplr.com/view/12048]

Oops, didn't mean to commit that? Undo it easily:

  1. # svn merge -r num_of_rejected_version:num_of_version_to_revert_to pathname
  2.  
  3. svn merge -r 100:91 ./foo.txt
  4.  
  5. # commit it
  6. $ svn commit ./foo.txt -m "Undoing changes from r100; reverting to r91."

Report this snippet  

You need to login to post a comment.