Help! Did something wrong in Git

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help! Did something wrong in Git

441 Views
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 Kudos
1 Reply

374 Views
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 Kudos