Git remove last commit from local
In this post we will give you information about Git remove last commit from local. Hear we will give you detail about Git remove last commit from localAnd how to use it also give you demo for it if it is necessary.
Git is distributed version control system that is a awesome. when ever you are working with git repository. if you did commit your code in your local system by mistake, then if you want to remove last commit from your project. so let’s see following example:
git add .
git commit -m "change for test"
git reset --soft HEAD~
Hope this code and post will helped you for implement Git remove last commit from local. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs