SyntaxFix
Write A Post
Hire A Developer
Questions
Try simply to reset last commit using --soft flag
--soft
git reset --soft HEAD~1
Note :
For Windows, wrap the HEAD parts in quotes like git reset --soft "HEAD~1"
git reset --soft "HEAD~1"