如何撤销git commit --amend 2020-10-18 本文已影响0人 louyang git log --reflog 找到要恢复到的commit,执行: git reset <commit hash> --hard