步骤:
Git Bash内
1.cd到自己电脑的存储库
2.查看历史版本
git log
3.将下面指令中的<commit-hash> 替换为要回滚版本的哈希值(步骤2中的黄色字体)
git reset --hard <commit-hash>
git push origin --force
步骤:
Git Bash内
1.cd到自己电脑的存储库
2.查看历史版本
git log
3.将下面指令中的<commit-hash> 替换为要回滚版本的哈希值(步骤2中的黄色字体)
git reset --hard <commit-hash>
git push origin --force