سؤال

I was so dumb that I committed and pushed it to the server and found out that the commit message was wrong. So I used --amend to fix the comment. But now I can't push to the server anymore :S

What to do?

هل كانت مفيدة؟

المحلول

You need to push with -f to force the push, since you are rewriting history:

git push -f origin master
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top