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
Simply type in the console :
$ git reset HEAD~
This command discards all local commits ahead of the remote HEAD