user550265
user550265

Reputation: 3289

How to revert a file to previous version using TortoiseSVN?

How does one revert a file to its previous version using TortoiseSVN GUI?

Upvotes: 18

Views: 26729

Answers (5)

zerkms
zerkms

Reputation: 255155

  1. Click right mouse button on the needed file
  2. Choose Tostoise SVN -> Show log
  3. In the top part select needed revision
  4. In the bottom part click on that file and select Revert changes from this revision

See TortoiseSVN Manual | Undoing changes.

Upvotes: 29

bahrep
bahrep

Reputation: 30672

I see no mentions of TortoiseSVN Manual where you can get the answer. :(

See TortoiseSVN Manual | Undoing changes.

Upvotes: 0

Fletch
Fletch

Reputation: 5259

The question is really a bit vague. But anyway, if you want to revert a file to any previous version:

  1. Click right mouse button on the needed file
  2. Choose Tostoise SVN -> Show log
  3. In the top part select needed revision
  4. In the bottom part click on that file and select Save revision to... and save it somewhere unrelated, on your desktop or whatever.
  5. (You can close all the Tortoise dialog boxes.)
  6. Copy the contents of the file you just saved over the one you want to revert.

Upvotes: 1

Nick Banks
Nick Banks

Reputation: 4408

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.

Upvotes: 7

Martin Beckett
Martin Beckett

Reputation: 96177

right click on file, go to tortoiseSVN submenu, click revert

Upvotes: 3

Related Questions