git回退commit

git log查看提交记录的commit_id

git reset --hard <commit_id>    //强制本地回退到历史中的某个commit

git push origin HEAD --force      //将本地代码强推到remote

原文地址:https://www.cnblogs.com/ranger-jlu/p/4646854.html