git如何回滚到历史任意版本,步骤:
- 查看提交的log,复制要回滚版本的commit_id
git log
2. 执行
git reset --hard c9f3066ab527531c83a5a71712eb147167c08e76
- 强制提交到分支
git push -f origin dev
git如何回滚到历史任意版本,步骤:
git log
2. 执行
git reset --hard c9f3066ab527531c83a5a71712eb147167c08e76
git push -f origin dev