0

I didn't realize that I had uncommitted changes and I ran git checkout -- 'file', is there a way to undo this?

Zoe
  • 27,060
  • 21
  • 118
  • 148

2 Answers2

0

No, sorry, git doesn't do any tracking of things that haven't yet been staged.

Turn
  • 6,656
  • 32
  • 41
0

Unless the file was staged prior, there is simply no way to get it back. Git can only keep track of things that it is made aware of; any changes that it isn't made aware of can't be recovered by it alone.

Makoto
  • 104,088
  • 27
  • 192
  • 230