Git tries very hard not to forget anything you have ever committed, but that only works as long as your .git directory is intact. What do you do if it gets corrupted? Many parts of it can be recovered and in this article we find out how to do this.| Git Cookbook