git回到之前的版本

我的git重置"main"失误后补救的两个命令

$ git reflog show main
$ git reset --hard main@{2}

失误

重置错了恢复

原文地址:https://www.cnblogs.com/tjhd/p/13880134.html