Git Bash 版本回滚

步骤:
Git Bash内

1.cd到自己电脑的存储库

2.查看历史版本

git log

 3.将下面指令中的<commit-hash> 替换为要回滚版本的哈希值(步骤2中的黄色字体)

git reset --hard <commit-hash>
git push origin --force

 

posted @ 2023-10-10 14:43  yonuyeung  阅读(42)  评论(0)    收藏  举报