git误删除一个commit如何恢复

1.

git reflog

这里写图片描述

2.

git reset --hard c287921

完美解决

猜你喜欢

转载自blog.csdn.net/qq_34908844/article/details/80083727