Git remove last commit from local

By Hardik Savani | March 18, 2016 | | 27805 Viewer | Category : Git

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~

***Do you want me hire for your Project Work? Then Contact US.