Every time you publish (zip or git) a new version is saved. Under Sites → your site → Versions you see all publishes with time, source and any build log.
Click Restore on an older version and it is published again immediately – the current one is kept, so you can undo the undo.
With git you also have the whole history in the repository.