문제

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