Sometimes, it may be important to return back to an another version of the entire repository.
To do this, you need to first right click on the repository folder in the main work area (in the left side) and select Commit History This will take you to the Log page and there you can read all the various pushes that were seen for that repository.
Each push would have an ID: statement. That is what we need to use.
Inside the Log file, you should select any text of this kind, shown below. Basically, select the entire ID for that particular version you want Git Winch to revert to.
ID: 3feaefw2asdfswerfwerwerwerwe
In the above example, make sure you select the entire text using the mouse right from the starting “I” to the ending “e”. When you do that, you would see that a previously hidden button named “Revert to this version” would now be seen. Click that button and you can restore the repository to that specific version.
Important
Make sure you click the button else it would again become invisible if you happened to unselect the earlier selected ID information.
NOTES
When you use this command, please note that the ENTIRE contents of the repository folder would shift to the state it was during the commit you had selected. This affects ONLY your computer and will NOT affect the files kept at the Git host service.
Instead of using this command, you can just select the files you want to work on and revert just that. Explained here.