I committed some bad code changes to my SVN sever using TortoiseSVN.
Now the head revision is 155, but I would like to delete the last 2 revisions so that the head revision is 153. In other words, I would like to "undo" my last two commits.
How can I do this using TortoiseSVN? Does an option exist in the TortoiseSVN menu, or do I need to use the command line?
If you want to undo all changes you made in a file since the last update you need to select the file, right click to pop up the context menu and then select the command TortoiseSVN → Revert A dialog will pop up showing you the files that you've changed and can revert. Select those you want to revert and click on OK.
Right-Click the revision you want to remove NOTE: this is the revision you want to remove, not the one you want to revert to. Select "Revert changes from this revision". Click "Yes" at the prompt. Update the checkout as normal, but to "HEAD".
Right click the any folder and choose TortoiseSVN -> Repo Browser. Then point to your local repository in the URL field. Once open you could be able to browse the repo, and with a right click, delete the folder.
Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision.
If you open the SVN Log, you can then right-click on a revision and use the options Revert to this revision or Revert changes from this revision. Both of these options will update your working copy (which you can then commit).
There are no options within TortoiseSVN to delete revisions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With