title: Git repository corrupted and changed files are empty after PC crash
body: <p>I was working with git bash, rebasing and stashing my changes when suddenly my PC crashed. After the restart, the disk was repairing, but when it loaded the repository no longer worked, git commands returned:</p>
  <p><em>fatal: not a git repository (or any of the parent directories): .git</em></p>
  <p>All the files that I have not committed are now blank, the changes are gone. HEAD files and stash are also corrupted. I am in a panic mode.</p>
  <p>What can I do in this situation to recover lost files and restore the repository to the previous state?</p>