How to revert a file to previous version using TortoiseSVN?
How does one revert a file to 开发者_如何学Pythonits previous version using TortoiseSVN GUI?
- Click right mouse button on the needed file
- Choose
Tostoise SVN
->Show log
- In the top part select needed revision
- In the bottom part click on that file and select
Revert changes from this revision
See TortoiseSVN Manual | Undoing changes.
Revert will just remove all the current changes that you have, and put your code back to what ever version you are currently at. If you want to be at a different version, you have to go to tortoiseSVN -> Update to Revision.. and pick the revision.
right click on file, go to tortoiseSVN submenu, click revert
The question is really a bit vague. But anyway, if you want to revert a file to any previous version:
- Click right mouse button on the needed file
- Choose
Tostoise SVN
->Show log
- In the top part select needed revision
- In the bottom part click on that file and select
Save revision to...
and save it somewhere unrelated, on your desktop or whatever. - (You can close all the Tortoise dialog boxes.)
- Copy the contents of the file you just saved over the one you want to revert.
I see no mentions of TortoiseSVN Manual where you can get the answer. :(
See TortoiseSVN Manual | Undoing changes.
精彩评论