问题描述 git commit -m 'modify push' git push git commit -m --amend # 命令记错了,导致提交message为--amend git push 当前分支为orgin/chen,remote最后的提交信息为–amend 现在想要将origin/chen pull下来,然后reset一个版本,再使用: git commit --amend git push 这样做是有风险的,建议新建分支temp: 解决方案 git branch temp origin/chen #因为要修改chen分支,默认是当前分支