git commit --amend -m "XXXXX"
后面直接按照往常push即可。
可以先执行上述命令,然后再暴力式执行如下命令:
git push -f
转载:https://blog.csdn.net/u014029186/article/details/52836461
git修改已提交代码的注释的方法
原文:https://www.cnblogs.com/Jlord/p/12837618.html