We all have been in the situation were we have to go back and undo some changes and re-write our code. But what happens when <CTRL+Z> is not enough? What do we do when we have to go back and start over?
Android Studio has an amazing feature which saves all your changes and let you check a history or "log" for all the changes you have been doing. This log catches when you delete a file, when you reformat a class, when you re-writte a function; everything.
To access it, you just have to right click in your project then select Local History > Show History.
The history window will let you track all the changes committed. Once you find the change you want, right click on it and then select "Revert".
The status of the project will be updated. Deleting all items that were created before that given change so you have to choose carefully if you want to revert to a given change.
This feature can store all the data of the changes of your project and will let you revert any catastrophic changes that <CTRL+Z> can't.
Thank you for reading
No comments:
Post a Comment