回滚 回滚到之前的版本
git reset --hard fdeb212a5418cc8e31f32d63cf197550297468ec
强制覆盖 回滚过后想要把代码再提交到线上仓库就会报错,这个时候就需要强制覆盖
git push origin master -f
回滚 回滚到之前的版本
git reset --hard fdeb212a5418cc8e31f32d63cf197550297468ec
强制覆盖 回滚过后想要把代码再提交到线上仓库就会报错,这个时候就需要强制覆盖
git push origin master -f
本文标题:git回滚与强制覆盖
本文链接:https://www.haomeiwen.com/subject/pxklxctx.html
网友评论