1

I have committed my changes accidentally on mainline. Now i want to revert the last two changes committed to the svn server by me. It seems "revert" command will undo changes in only my working copy. As of now i don't have any changes in my working copy and i haven't created a branch for this project. I want to revert the commit in the mainline.

I have used: svn commit -m "message i used"

should I use merge command? But I thought this will create more issue. What I wanted exactly is to delete the commit in the svn mainline.

Please help me with the simple and correct command so that i will not mess up anything else.

suganya
  • 21
  • 1
  • 3

1 Answers1

2

This command undoes one revision:

svn merge -c -REV .

Run it twice to undo two revisions.

Or, if you're using TortoiseSVN, see this.

(source)

Menasheh
  • 3,560
  • 3
  • 33
  • 48