Here is how you undo your last commit and keep the changes from last commit files in stag or uncommited.
reset --soft HEAD^
Here is how you undo your last commit and keep the changes from last commit files in stag or uncommited.
reset --soft HEAD^