CTRL+Z (Undo) history/log command? How to revert?
Unfortunately, this is no recourse for this.
However, you can prevent it from happening again.
A program wrote by a Super User member for this exact thing, still works.
dwuendo
Disables CTRL + Z & CTRL + Y while Explorer is the active Window
I confirmed a moment ago that it works all the way up to Windows 10.
Source: Original post by Jelle Geerts
CTRL+Yis the (usual) standard "REDO", opposite, reverse action of CTRL+Z"UNDO".
If that doesn't work, try CTRL+SHIFT+Z for "UNDO" in some programs.