How to reset your git commit

How to reset your git commit

There are two ways to reset your GIT commits 1. Soft reset 2. Hard reset A soft reset will reset your last commit to its previous commit and you won't lose your changes. A Hard reset will reset your last commit to its previous commit but you will lose your changes...