Thursday, July 16, 2015

How to revert back / to restore to a previous SVN commit?

This will rebase your working copy at revision 45:

# svn update -r45


This will update (by reverse-merging) your working copy by removing all the changes between 45 and 50. Now if you make changes and commit, it will be like you have removed 46-50 from the repository and made the HEAD revision (51?) to be r45 + your change:

# svn merge -c -50,-49,-48,-47,-46


No comments: