git本地回滚:
- git log 打印本地commit记录
- 复制 想要回滚的那条commit的id,
- git reset --hard (commitid) 开始根据commitid回滚git版本
git 远程回滚 (没试过, 谨慎使用)
- git reflog 打印远程commit记录
- git reset --hard (commitid) 这里的commitid为提交代码版本的前几位数字
- git push -f 强制推送远程, 更新版本
git本地回滚:
git 远程回滚 (没试过, 谨慎使用)