After making use of the command to stage, commit and push all at once I asked for here Git command to commit all changes including files removed or created, I've typed the wrong commit message and then pushed it to my Github account. I'm the only contributor to my repo so there's no pulling issues to fear.
I've followed the advice given here Changing git commit message after push (given that no one pulled from remote) and here Edit an incorrect commit message in Git that has already been pushed which is basically to do:
git commit --amend
which opens up my text editor (Sublime) displaying the message of the last commit. Once in there I modify this message, save and close the file. After that I type:
git push origin master --force
which appears to work fine. But if I now do a :
git log
I keep seeing the wrong (ie: the old) message in my last commit and my Github account shows no changes whatsoever. What am I doing wrong?