Reputation: 787
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?
Upvotes: 8
Views: 15754
Reputation: 193
Then, for better display, click View and check Hide Unrelated Changed Paths
Upvotes: 7
Reputation: 127
Most of the other answers will result in the changes to the local file being overwritten. It seems to me the the OP just wanted to see one of the older versions, as I occasionally do. To do this, follow the initial steps of the other answers: right-click the file, select TortoiseGit > Show Log, and select the version you are interested in seeing. In the bottom pane, right-click the file and select "Save revision to...".
Upvotes: 4
Reputation: 142174
As you can see here:
You have the show log option. Select it and then you can browse your file history.
Upvotes: 2
Reputation: 19035
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"
Upvotes: 2
Reputation: 842
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.
Upvotes: 3
Reputation: 314
Select Tortoise Git -> Show Log ->
In the dialog that opens, select the desired version at the top of the browser. Select specific file at the bottom of the browser Right click on the file & Select "Revert to this version".
Upvotes: 0