回退代码

1.git log 查看commitId,reset到该版本

  git reset --hard ca5cbd987205f328a59ae577......

// 强制覆盖远程分支代码

2.git push -f   

3.git reflog

或git log --pretty=oneline

原文地址:https://www.cnblogs.com/rebaomi/p/10059478.html