Sangram Anand
Sangram Anand

Reputation: 10844

How to Undo Subversion commit

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

Upvotes: 2

Views: 2262

Answers (1)

NPE
NPE

Reputation: 500167

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.

Upvotes: 9

Related Questions