I have a PC for Windows development and Linux box for Android development. Our source control is Subversion and I use TortoiseSVN on Windows and Subclipse plug-in in Eclipse on Linux.
Sometimes I'll edit a file for some experiment but I don't want to keep the changes. In Subclipse all I have to to is "Replace with latest from Repository" to bring it back in line with the latest committed code.
What's the equivalent of this in TortoiseSVN? Is there a simple one-step way to replace my local file with the current latest in the repository?
N.B. I don't want to do an "Update" because according to the documentation that will merge in others' changes. I want a complete replacement.
Thanks in advance.
I don't think there's a one-step action for that.
Right-click on working copy folder TortoiseSVN -> Revert
& choose the files which should have their local changes undone, and then do a TortoiseSVN -> Update
.
Use svn revert
or the same command of TortoiseSVN context menu: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-revert.html and then svn update
the working copy,
Ultimate solution: svn checkout
a fresh working copy or do it though TortoiseSVN context menu.
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