2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Explain how you can revert to a previous version?

Explain how you can revert to a previous version?

userimage

To retrieve a previous version, you have to use “revert” command. But revert command will simply erase local edits, what you actually need is to “merge” command. For example, you have a file [abc.txt] and the current version is 101, and you want version 201. Then you will use the command like

  • svn merge –r 101:201 abc.txt
  • svn commit –m “Reverted to revision 201” abc.txt
Answer is