# Git Undo and Revert | Alkaison's Blog ‘revert’ is the command we use when we want to take a previous commit and add it as a new commit, keeping the log intact. [https://alkaison.github.io/posts/git-undo-and-revert/](https://alkaison.github.io/posts/git-undo-and-revert/)