git在本地回退 参考https://www.cnblogs.com/qufanblog/p/7606105.html 已经用 git commit 提交了代码。 可以使用 git reset --hard HEAD^ 来回退到上一次commit的状态。