Skip to content

版本回退

具体实践

bash
# 获取到远程提交的id 切换指针进入到制定提交 此时还在本地记录内
git reset --hard 8ce26a03e961161d8b3993a3a6b66eb066e75ffd

# 强推 此时远程仓库的指针已经指向了本地记录的指针 远程的提交就永远消失了
git push -f

贡献者

The avatar of contributor named as ruan-cat ruan-cat
The avatar of contributor named as 阮喵喵 阮喵喵

页面历史