Git 回退到某个历史版本

回退到某个历史版本

git-bash

git reset --hard commit_id

如果是回退到上一个版本,可以用便捷写法:git reset --hard HEAD^

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

导航