git还原历史某一版本

返回上一版本 git reset --hard HEAD^

常用的命令
git reflog
git reset --hard "填写版本号"

黄色的就是版本号


其他查看以前版本的命令
git log

git log --pretty=oneline



 

猜你喜欢

转载自www.cnblogs.com/bbqq1314/p/9982034.html
今日推荐