title: Git: restore files deleted by "git update-ref -d HEAD"
body: <p>I ran <code>git update-ref -d HEAD</code> command, which deleted all my files. The folder size is still large, so, I suppose the files are somehow in git's memory.
  How can I recover those files?</p>