git 版本还原

1、tortoisegit  

 a、显示日志

b、选择某个时间点的代码,重置到这个版本,选择重置类型:硬重置

2、还原回来到某个版本

 git reflog 

git reset --hard xxxxxxxx 即还原到某个版本了。

猜你喜欢

转载自blog.csdn.net/ding1145536113/article/details/79611433