1、查看提交记录
git log
2、根据提交记录回退版本
git reset -- hard 提交记录号
3、将回退版本提交到服务器
git push -f (括号内为替换方案:git push origin HEAD --force)
git log
git reset -- hard 提交记录号
git push -f (括号内为替换方案:git push origin HEAD --force)
本文标题:git 回退到远程某个分支
本文链接:https://www.haomeiwen.com/subject/neuurqtx.html
网友评论