对add后悔了: git reset 对commit和push后悔了 git reset --mixed HEAD^ 对git commit --amend后悔了 git reset HEAD@{1} ref: https://www.cnblogs.com/shih/p/6826743.html https://segmentfault.com/a/1190000014272359