Today now in this post i will show you how to remove last commit from git on locally. We know that git is distributed version and control system that is a awesome. when ever we are working with git repository. From here you will know about How to Remove Last Commit From Local In Git? If we did commit our any code in our local system by mistake, then also if we want to remove last commit from our project. so let’s see the following example for remove:
git add . git commit -m "change for test" git reset --soft HEAD~
Read Also : How to remove specific value from php array?
Thanks for read. I hope it help you. For more you can follow us on facebook.