February 20, 2022February 20, 2022
Tips and Tricks
Revert last commit in GIT
git reset --soft HEAD~1
–soft will not remove your uncommited code. Again if you replace the same with –hard it is going to replace all the uncommited code in your local
git reset --hard HEAD~1
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.