Help! Did something wrong in Git

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Help! Did something wrong in Git

1,241 次查看
davidsherman
Senior Contributor I

I think I messed up something.  I tried resetting my local Git repository (hard reset) back to something from several months ago.  I had made sure all my latest changes were committed so nothing was lost.  Now how do I undo it and reset back to that latest commit?  If I look at the history, it only shows up to what it was to where I reset it.

0 项奖励
回复
1 回复

1,174 次查看
davidsherman
Senior Contributor I

Whew!  Figured it out.  In the Git reflog view, I was able to reset back to the last commit.  Back to normal now.

0 项奖励
回复