Git clone, Permission denied on windows

192 Views Asked by At

Im trying to clone a repo and facing Permission denied error as below

$ git clone https://github.com/PowerShellEmpire/PowerTools.git
bash: /mingw64/bin/git: Permission denied
1

There are 1 best solutions below

1
On

Have you tried running git-bash as administrator (right-click > run as administrator), so that it fixes the permissions on the executable files in /mingw64/bin. Source: https://stackoverflow.com/a/62390205/13339621