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