master #3

Open
yovinchen wants to merge 4 commits from master into dev
1 changed files with 26 additions and 1 deletions
Showing only changes of commit cafb099c40 - Show all commits

View File

@ -230,6 +230,31 @@ services:
start_period: 60s #⾸次检测延迟时间
```
学习 git 提交回滚
## 学习 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)