Undoing changes
One of the most valuable features of Git is the ability to undo mistakes. When you make a new commit, Git stores a snapshot of your project so that you can return to an earlier version when needed.
There are two main ways to undo changes: git revert
and git reset
.