A Doc already has the full history. So when you save the updates (or persist the Doc), the full history is saved.
A snapshot, in YJS terms, contains just a set of clocks, ids, and deletes that allows you to identify the state at a specific point in time. It does not contain any of the actual content. So you need to combine it with the original Doc to restore specific states. This will be obvious when you use the createDocFromSnapshot, which takes the original Doc as an argument.
Y.createDocFromSnapshot creates an entirely new Doc and does not change the state of the old Doc. To revert to an update (in the sense of git revert), you need to calculate the delta and apply it manually to the original Doc.