比如说,我想将线上仓库的版本回退到红线的这个版本

Git 线上仓库回退到指定的版本

 

那么我需要,

git   pulll  

git   reset --hard  commit_id  (hash值)

git   push  origin HEAD --force (如果不成功,请去掉git分支保护 ,https://www.jianshu.com/p/91ff63095a11

Git 线上仓库回退到指定的版本

相关文章: