0

I stupidly ran git reset --hard on my branch. I was in the wrong branch. Unfortunately, I didn't perform git add .. Is there a way to get back my work?

THpubs
  • 7,804
  • 16
  • 68
  • 143

1 Answers1

1

No. I do not believe there is a method to get your local code back if it was never added to the local or git repository at any point. If it was added at any point, you could use git fsck to get back the last deleted data that was added at some point. There was another stack overflow here talking about that possibility

Community
  • 1
  • 1
Eric Groves
  • 146
  • 7