一共需要三个步骤:
第一步:git checkout到你想恢复的分支上
1.git checkout 分支名
第二步:git reflog查出要回退到merge之前的版本号
git reflog

第三步:git reset --hard 版本号,就可以回到merge之前的代码状态了
git reset --hard a1d566d
成功了

标签:git,版本号,步骤,hard,merge,reflog,checkout
来源: https://www.cnblogs.com/amujoe/p/16135710.html