Right click and choose Local History and select Show History.
From there you can see the history of changes made to the file, and then choose the time you want to bring back the file to.
You will get two windows with the left one having >>. Click on all the >> and this will send your changes to the right window.
Close the window and here you go with your file restored to where you wanted it to be.