Git 回到最新的版本

回到最新的版本

git-bash

# 查看切换记录
git reflog

# 找到最新提交的 commit_id 并转至最新
git reset --hard commit_id

posted on 2021-09-10 09:45  aisowe  阅读(1039)  评论(0编辑  收藏  举报

导航