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/master
will give you the opportunity to correct the commits you have beyond your upstream repository. Then you can git push
the result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With