title: git error “unable to write sha1 filename … Permission denied”
body: <p>I am using git on windows. This is what I did: doing development on machine M1, created bare repository on USB drive M2 to backup the repository on M1. I did backups using this command (from git bash on M1):  </p>
  
  <pre><code>git push --mirror "f:\repo"
  </code></pre>
  
  <p>Worked without any issues.
  Then I bought a new machine M3. I cloned the repository from M2 to M3:</p>
  
  <pre><code>git clone "f:\repo" .
  </code></pre>
  
  <p>Made some checkins to the repo in M3. Then I did  (from git bash on machine M3)</p>
  
  <pre><code>git push --mirror "f:\repo"  
  </code></pre>
  
  <p>I get this error:
  unable to write sha1 filename … Permission denied
  How can I fix this?</p>