Help! Did something wrong in Git

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Help! Did something wrong in Git

1,240件の閲覧回数
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,173件の閲覧回数
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 件の賞賛
返信