Hi I want to undo my last commit. What I did is I made some changes to file then I commit them but I have not push them to main repo yet. After git commit -m "comment" command I ran git status and I got this message
Your branch is ahead of 'origin/demo' by 1 commit
So now I want to undo my last commit so how can I do that?