每次提交的代码都有一个唯一的commit id
(版本号),可以 通过git log 查到。
回滚到指定版本:
git reset --hard b498237e6dc1fc4861c79d3314d07285995b
强制提交:
git push -f origin develop
每次提交的代码都有一个唯一的commit id
(版本号),可以 通过git log 查到。
回滚到指定版本:
git reset --hard b498237e6dc1fc4861c79d3314d07285995b
强制提交:
git push -f origin develop
下一篇:Git 恢复本地误删的文件
git clone 与 git 安装
1 问题我们用svn下载了最新的代码,但是我们需要回退到制定
录: git log -5commit 8fcf6382bbbe422eae230851589b
回滚版本库里的版本 使用版本日志对话框 如果想恢复某个版本或者版本范围的变更,最简单的方法是使用版本日志对话框。这种方法也可以用来撤销最近的若干次变更,把以前的某个版本变成最新版。 选中想要恢复变更的文件或者文件夹。如果想要恢复所有的变更,需要选中最顶层的文件夹。TortoiseSVN → 显示日志,显示出版本列表。有可能需要使用全部显示
&nbs
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M