title: "git reset --hard " error unable to stat just-written files after setting "core.bare" to false
body: <p>When I try the following bash commands:</p>
  
  <pre><code>git clone --bare https://github.com/planetoftheweb/learnangular.git .git
  git config --bool core.bare false
  </code></pre>
  
  <p>followed by:</p>
  
  <pre><code>git reset --hard 
  </code></pre>
  
  <p>it gives me this error :</p>
  
  <pre><code>error: `unable to stat just-written` file app/component.app.ts: No such file or directory
  error: unable to stat just-written file app/component.artist-details.ts: No such file or directory
  error: unable to stat just-written file app/component.artist-item.ts: No such file or directory
  error: unable to stat just-written file app/pipe.search.ts: No such file or directory
  error: unable to stat just-written file app/app.modules.ts: No such file or directory
  </code></pre>
  
  <p>what is the reason?</p>