2

I by mistake commit a file to one of the branch. I want to undo the commit, is it possible to do so. Please suggest me a solution.

-- Thanks

Sangram Anand
  • 10,156
  • 22
  • 67
  • 102
  • possible duplicate of [Subversion: Retract Accidental Checkin](http://stackoverflow.com/questions/747713/subversion-retract-accidental-checkin) – CharlesB Jan 21 '12 at 08:52

1 Answers1

9

svn merge -c -REV, where REV is the revision number of the commit you want to undo.

This should be performed on a clean local copy. The result will need to be checked in (of course, provided you're happy with it).

For a detailed explanation, see the svn book.

NPE
  • 464,258
  • 100
  • 912
  • 987