git回到以前的版本

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

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

失误

重置错了恢复

相关文章
相关标签/搜索