SyntaxFix
Write A Post
Hire A Developer
Questions
I think you are looking for this
git reset --soft HEAD~1
It undoes the most recent commit whilst keeping the changes made in that commit to staging.