This nicely shows why I absolutely hate UIs for git. It looks convenient, but is it really?
There is no “undo” subcommand in git. I assume this is a git reset of the last commit on head? Soft reset? Or hard reset? UX wise this is very unclear, as a user, clicking it is a gamble.