I didn't realize that I had uncommitted changes and I ran git checkout -- 'file'
, is there a way to undo this?
Asked
Active
Viewed 1,651 times
0

Zoe
- 27,060
- 21
- 118
- 148

Will Anderson
- 36
- 6
-
http://stackoverflow.com/questions/2689265/can-git-undo-a-checkout-of-unstaged-files – Abdul Waheed Khan Dec 31 '15 at 04:46
2 Answers
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