Game Development Reference
In-Depth Information
The Revert dialog will show, allowing you to select files for reversion. Select all
the required files and then choose OK . Git will then restore all the selected files,
overwriting the local versions with the latest versions from the repository:
Select files to revert
On the other hand, you might not want to revert or undo the recent changes. Instead,
you might have created a valid change; this should be added to the Git repo as the
latest version of the files. If so, then simply recommit the files. Right-click inside the
project folder window and, from the context menu, go to Git Commit | Master . Be
sure to enter a new and descriptive message for the commit inside the Message ield
of the Commit dialog.
Step #8 - getting files from the repo
Once the original commit of all the files has been made, if you were to delete every
file in the Unity folder either intentionally or accidentally, except for the .git and
.gitignore files, you could still retrieve all the latest files again. This is because the
Git repo contains the files.
You can retrieve deleted files
in the project folder from the Git repo
Of course, if you are really following along with the topic by
deleting your own files, make sure to keep a manual backup of
them, in case anything goes wrong during testing!
 
Search WWH ::




Custom Search