Undoing (reverse merging) changes/versions in Subversion


/ Published in: Bash
Save to your folder(s)

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

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


Copy this code and paste it in your HTML
  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."

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.