git回退

1.git log 查看历史提交记录

2.远程仓库查看head代码

3.git reset --hard (要恢复的版本head)

原文地址:https://www.cnblogs.com/ljh12138/p/13941694.html