I did a git commit but I have not pushed it to the repository yet. So when I do git status, I get \'# Your branch is ahead of \'master\' by 1 commi
git commit
git status
Remove the last commit before push
git reset --soft HEAD~1
1 means the last commit, if you want to remove two last use 2, and so forth*
1
2