Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check out an older version of a file with TortoiseGit?

I see threads on here about checking out older versions of a file with the command line git, but how do I do it with TortoiseGit?

like image 240
ChopperCharles Avatar asked Feb 18 '16 21:02

ChopperCharles


Video Answer


3 Answers

  • Show log option (right-click one the file), but remember to un-check Show Whole Project to only display commits relevant to the selected file. Show log dialog window

Then, for better display, click View and check Hide Unrelated Changed Paths

  • Next you can right-click on the file and use Revert to this revision enter image description here
like image 112
Radzor Avatar answered Oct 02 '22 17:10

Radzor


Right click the file, select TortoiseGit > Show Log. Find what revision of the file you want to check out, by clicking old revisions in the bottom pane of the log. Once you find which one you want to check out, select 'Revert to this revision'. Word of warning, I'm not sure if this reverts a single file, or rolls the entire repo back to that hash tag.

like image 25
Nate M. Avatar answered Oct 02 '22 16:10

Nate M.


Right click on the file you are interested and choose Tortoise Git --> Show Log. Select the commit in the log you are interested in, then right click on the file you are interested in the bottom pane, and select "Revert to this Revision"

like image 29
David Deutsch Avatar answered Oct 02 '22 16:10

David Deutsch