How to recover lost files added to Git but not committed
How to recover lost files added to Git but not committed
If you lose something [in Git], don’t panic. There’s a good chance that you can find someone who will be able to hunt it down again.
So said MJD’s previous blog. This is a write-up of how he recovered some files that he accidentally deleted after being staged, but not yet committed.