Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undoing a commit in TortoiseSVN

I committed a bunch of files (dozens of files in different folders) by accident. What is the easiest, cleanest (and safest!) way to 'undo' that commit without having to delete the files from my working directory?

like image 690
Manu Avatar asked Oct 29 '08 23:10

Manu


People also ask

How do I revert changes in svn?

To roll back local changes in a file under SVN source control, right-click the file and select Source Control > Revert Local Changes and Release Locks. This command releases locks and reverts to the version in the last sandbox update (that is, the last version you synchronized or retrieved from the repository).

What is svn revert option?

svn revert will revert not only the contents of an item in your working copy, but also any property changes. Finally, you can use it to undo any scheduling operations that you may have performed (e.g., files scheduled for addition or deletion can be “unscheduled”).

How do I edit a TortoiseSVN file?

You can drag unversioned files which reside within a working copy into the commit dialog, and they will be SVN added automatically. Dragging files from the list at the bottom of the commit dialog to the log message edit box will insert the paths as plain text into that edit box.


1 Answers

Go to Show Log Screen, select the revision that you want to undo, right click it and select Revert changes from this revision, this will do a reverse-merge.

like image 199
Christian C. Salvadó Avatar answered Oct 15 '22 11:10

Christian C. Salvadó