git代码回滚到历史上的某一次提交。
git命令:
git reset --hard <commit-id>
commit-id可以通过git log输出查找。
然后强制推送到远程:
git push --force
2023-04-11 10:15:41 阅读次数:392
git代码回滚到历史上的某一次提交。
git命令:
git reset --hard <commit-id>
commit-id可以通过git log输出查找。
然后强制推送到远程:
git push --force
上一篇:Java反射类Class,反射方法Method以及反射变量Field
下一篇:RxJava2 / RxAndroid2操作符distinct与distinctUntilChanged去重结果异同
【git】git commit、push之前自动执行脚本
【git】git 客户端设置本地缓冲区大小
git查看用户信息命令
Git 的暂存区(staging area)理解
GIT拉下时冲突解决
pull会使用git merge导致冲突
IDEA提交项目至GitHub仓库
Git进阶:本地或远程仓库如何回滚到之前的某个commit
【Git】Git配置|配置Username和email
【GIT】git 从ssh切换至https 从https切换至ssh|http免密码
文章
31309
阅读量
4472577
2025-02-17 08:52:45
2024-12-11 06:20:18
2024-11-20 09:46:57
2024-11-20 09:45:47
2024-11-05 08:40:34
2024-10-09 09:14:24
2023-02-16 08:53:34
2023-05-10 06:03:07
2023-06-15 06:00:54
2024-11-20 09:46:57
2024-09-25 10:15:32
2023-05-24 08:08:46