It's easy to revert changes to a file when you've either made a mistake or if you simply don't like the result.
Any edits you make to your document are stored in the History panel. You can then use this, or standard quick keys, to undo an edit. You can also redo an edit which you have recently undone.
Do one of the following: