- 先git log查到你想回退的版本号
git log
image.png
比如这个,然后
- 回退版本
git reset --hard 32b34//不用全部写,写前面五六位就可以了
- 把修改推到远程
git push -f -u origin master //记得加参数
- 拉取更新后的
git pull
git log
image.png
比如这个,然后
git reset --hard 32b34//不用全部写,写前面五六位就可以了
git push -f -u origin master //记得加参数
git pull
本文标题:git 版本回退
本文链接:https://www.haomeiwen.com/subject/eogqxqtx.html
网友评论