git commit --amend -m "XXXXX"
后面直接按照往常push即可。
可以先执行上述命令,然后再暴力式执行如下命令:
git push -f
转载:https://blog.csdn.net/u014029186/article/details/52836461