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):
git push --mirror "f:\repo"
Worked without any issues. Then I bought a new machine M3. I cloned the repository from M2 to M3:
git clone "f:\repo" .
Made some checkins to the repo in M3. Then I did (from git bash on machine M3)
git push --mirror "f:\repo"
I get this error: unable to write sha1 filename … Permission denied How can I fix this?