记git push 失败 前情: 之前提交的代码在远程已经merge,本地 git commit --amend,发现提交失败,之后尽管重新新建 commit,push都会报错。 解决: git pull 同步远程代码 再重新提交 OK