3 ms·This. It also has an undo button to undo the last commit which has saved my ass a couple of times.by pier25 5y agoThis. It also has an undo button to undo the last commit which has saved my ass a couple of times.berdon 5y agoYou could just use ‘git undo’ or ‘git reset —-soft HEAD~1’.javajosh 5y agoIsn't "git undo" a very recent invention? In my experience, people don't upgrade git very often. As for your other comment, see the xkcd reference elsewhere in this thread :)