Book Image

Mastering Unity 5.x

By : Alan Thorn
Book Image

Mastering Unity 5.x

By: Alan Thorn

Overview of this book

Mastering Unity 5.x is for developers wishing to optimize the features of Unity 5.x. With an in-depth focus on a practical project, learn all about Unity architecture and impressive animation techniques. With this book, produce fun games with confidence.
Table of Contents (16 chapters)
Mastering Unity 5.x
Credits
About the Author
Acknowledgment
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Reverting and discarding


Until now we've used revert to undo the latest Commit. But revert isn't limited to just that. Revert can restore a Branch back to even earlier Commits going back to the very first Commit if needed. To do this, we simply need to find the Commit we want to restore in the branch, and then revert the Commit above that. This makes sense because we're effectively reverting all commits subsequent to the chosen one. Simply right-click on the Commit above, and choose Revert. For this example, I am reverting to the first commit.

Reverting to an Earlier Commit

If you now open a Windows Explorer or Mac Finder window to your Git managed folder, you'll see the file contents updated to reflect the selected Commit on the Active Branch. In Git terminology, we are always viewing the Head (topmost Commit) of the Current Branch (Selected Branch in the Repo). The folder will not include any Unity Projects, because all commits subsequent to the first have now been undone. Note: the folder...