Git delete last commit
If you have not pushed a commit use the following command to delete last commit.
Git delete last commit
git reset --soft HEAD~1
If you have not pushed a commit use the following command to delete last commit.
git reset --soft HEAD~1