Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to revert a file to previous version using TortoiseSVN?

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

like image 463
user550265 Avatar asked Jan 21 '11 03:01

user550265


People also ask

How do I revert back to old revision in TortoiseSVN?

Right click on the selected revision(s), then select Context Menu → Revert changes from this revision. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context Menu → Revert to this revision. This will discard all changes after the selected revision.

Can we revert commit in svn?

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.

Is TortoiseSVN a version control?

TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows. It is based on Apache™ Subversion (SVN)®; TortoiseSVN provides a nice and easy user interface for Subversion. It is developed under the GPL.


2 Answers

  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.

like image 196
zerkms Avatar answered Sep 22 '22 17:09

zerkms


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.

like image 21
Nick Banks Avatar answered Sep 21 '22 17:09

Nick Banks