git回退版本,已经commit过的文件丢了

参考:https://blog.csdn.net/qq_33877149/article/details/79705611

可以用

git reset --hard fa8694b

回退到以上相应的位置

git reflog   查看所有提交的状态 

猜你喜欢

转载自www.cnblogs.com/lude1994/p/10985185.html