git reflog。reflog它会记录所有HEAD的历史,也就是说当你做 reset,checkout等操作的时候,这些操作会被记录在reflog中

 

 

git reset --hard c346453

 

c346453为操作的log号