Compare commits

...

4 Commits

Author SHA1 Message Date
yovinchen cafb099c40 测试完成回归正常 2024-01-25 14:52:32 +08:00
yovinchen f33d9340b3 Merge remote-tracking branch 'origin/update' into update
# Conflicts:
#	README.md
2024-01-25 14:43:56 +08:00
yovinchen cbc0eea5e7 Reapply "撤销提交重新推送"
This reverts commit 64b65acefff9607d2b9a670db18677ece0111eec.
2024-01-25 14:41:59 +08:00
yovinchen 5f66891b8b 学习 git 提交回滚 2024-01-25 14:39:09 +08:00
1 changed files with 29 additions and 0 deletions

View File

@ -229,3 +229,32 @@ services:
retries: 3
start_period: 60s #⾸次检测延迟时间
```
## 学习 git 提交回滚
```shell
撤销提交重新推送
重新提交推送
再次尝试提交推送
```
总结:自己的远程分支版本回退的方法
```shell
#首先找到需要会退版本ID
git reflog
#如果你的错误提交已经推送到自己的远程分支了,那么就需要回滚远程分支了。
#首先要回退本地分支
git reflogç
git reset --hard Obfafd
#紧接着强制推送到远程分支
git push -f
```
最后强制推送效果(可视化中没有找到强制推送,先使用命令行强制推送吧)
![image-20240125145054441](https://lsky.hhdxw.top/imghub/2024/01/image-202401251706165455.png)