Revert Last commit in GIT

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

Leave a Reply

Your email address will not be published.