I would like to revert only the local code to previous versions.
For extra points, what i would like to do is to revert a folder to a previous version (only locally) and generate a file of differences from the version after it.
e.g. say I have version 100. I want version 99 and a diff between that and 100, then 98 and 99 etc.
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”).
Note that the svn merge command reverts a commit in the sense of having another commit undoing your changes, but keeping your wrong commit in the history.
To undo a specific revision you can use the following command: $ svn merge -c -r3745 . In case you have other edited files in working directory, you can commit only the relevant files. Please note that undoing actually will mean you create a new revision with the negatives changes of last commit.
svn update -r 99
svn diff -r 100
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