Barbaric Tip of The Week: How to Recover A Lost Commit With Git
Barbaric Tip of the Week is a weekly series whose main purpose is to share tiny bits of knowledge that I find specially useful and interesting.
Last week I experienced one of the weirdest moments I have ever had with git and something that should never ever happen within the secure confines of a version control system: I lost a commit. My source code, everything that I had been working on for 3 hours wiped out from existence.
Has this ever happened to you? Would you like to know how you can recover a lost commit?