From the command line: git checkout
is probably what you want.
The documentation shows an example of:
$ git checkout master~2 Makefile
to revert Makefile
to two revisions back in the master branch
From within TortoiseGit (via Windows Explorer) it looks like you can do this with the following steps:
Navigate in Explorer to the folder where the file is.
Right-click on the file you want to revert, choose
Show log
from the TortoiseGit context menu
In the top section ("graph") select the revision that has the version of the file you want to revert to
In the third section (file list) right-click the file and choose
Revert to this revision
You should get a message like
1 files revert to e19a77
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…