Showing posts with label commit. Show all posts
Showing posts with label commit. Show all posts

2013-07-16

Backing out a Subversion Commit

A useful how-to from T. Kim Nguyen. I made a commit to my repository:
$ svn commit -m "changed something"
resulting in revision 989, and discovered it didn't work. D'oh!

To undo this commit, and go back to the state of the code in revision 988:
$ svn update
$ svn merge -c -989 https://svn.myserver.org/svn/myproject
$ svn stat
$ svn commit -m "undid the previous change"
This results in revision 990, but with the state of the code as in 988.