You can revert a file to the last saved version (but not if you have closed and then reopened the file). You cannot undo this action.