1.git log
查看想要回退的节点的commit
image.png
2.git reset --hard a3d9dedccf1416c9e3bf15b1b360010f4b13c217
回退到想要的节点
smartgit上
git reset --hard ca85467e
image.png
3.git push -f
反推代码
查看想要回退的节点的commit
回退到想要的节点
git reset --hard ca85467e
反推代码
本文标题:git回退节点
本文链接:https://www.haomeiwen.com/subject/rkggiktx.html
网友评论