Recover files in git after reset --hard on added files(not committed!)
问题 I have few files which are never committed. I have added those files and by mistake i have executed "git reset --hard" i want to recover those files. please help me anyone. 回答1: This is not possible. These files are lost. 回答2: You can still save them if you've done nothing since. The git garbage collector is not run immediately. Try following this. 回答3: I have found the answer from stackoverflow only. from: How can I undo git reset --hard HEAD~1? ( :) this answer has got second last votes