git reflog 你所有amend过的提交 git都有保存 你可以cherry-pick出所有的历史提交 当然,你可以清除掉这些ref log git reflog expire --expire=now --all