Click UNDO and REDO or use keyboard shortcuts.
UNDO: Use Ctrl (Windows) or ⌘ (Mac) +Z.
REDO: Use Ctrl or ⌘ +Y. Alternatively, you can use Ctrl or ⌘ + Shift + Z.
You can also type the UNDO or REDO commands in the command line.