1、指定版本:
git log 看一下hash。然后 git checkout hash值就可以
2、指定分支: git clone xxx.git --branch 分支名
3、回滚版本:
3、1、重置到指定版本号的提交:
git reset --hard hash值
3、2、强制提交:
git push -f origin master
感谢:https://www.toutiao.com/i6596959883432559117/
1、指定版本:
git log 看一下hash。然后 git checkout hash值就可以
2、指定分支: git clone xxx.git --branch 分支名
3、回滚版本:
3、1、重置到指定版本号的提交:
git reset --hard hash值
3、2、强制提交:
git push -f origin master
感谢:https://www.toutiao.com/i6596959883432559117/