I committed something and realize my comment had a spelling error, so I typed git commit -m "xxx" again, with corrected comment.
As a result, I can’t push anything as git push says
Everything up-to-date
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
What can I do now?
git rebase -i origin/masterwill give you the opportunity to correct the commits you have beyond your upstream repository. Then you cangit pushthe result.