Game Development Reference
In-Depth Information
Alternatively, you might want to switch your project back to an earlier commit in the
repo, retrieving not the latest files, but an earlier commit instead. To do this, first go
to
Tortoise Git
|
Switch /Checkout
from the context menu to show the
Checkout
dialog. Then, from the
Switch To
group, enable the
Commit
radio box:
Enabling the Commit radio button to retrieve older commits
Click the browse button (
…
) next to the
Commit
field to display the repo commits
available, and select the earlier version to switch to. Then, click on
OK
to exit the
Repo Commits
dialog, and click on
OK
again to confirm the checkout from the
selected commit. The files from the selected commit will then be restored to the
project folder. Remember that each commit has an author (for those working in
teams), and this lets you get a picture of who has changed what:
Selecting older commits from the repo to restore