修改还未push的注释: git commit --amend 修改后保存退出。
刚刚push到远端还没有人其他人下载或改动的:
git commit --amend1进入修改页面修改注释信息,修改后:wq保存退出。 再使用git push --force-with-lease origin master
如果其他人已经下载或改动:
git fetch origingit reset --hard origin/master