When to Use Git Reset, Git Revert & Git Checkout
Git toolbox provides multiple unique tools for fixing up mistakes during your development. Commands such as git reset, git checkout, and git revert allow you to undo erroneous changes in your repository.
https://hackernoon.com/when-to-use-git-reset-git-revert-git-checkout-dc4824795d9