-v | git-scm.com
Today I accidentally deleted a file which was not yet commited. I had a brief moment of panic because I had been working on this for a few hours but then luckily remembered that it’s relatively easy to undo a mistake like this if the file has at least been staged before: Use git-fsck to find the dangling blob: $ git fsck --lost-found Checking object directories: 100% (256/256), done. Checking objects: 100% (252/252), done.| citizen428.net