I’m facing an issue trying to set up a project on my Windows 10 system. Whenever I attempt to clone a repository from GitHub, I encounter permission errors.
fatal: could not create work tree dir 'vagrant-local': Permission denied
I’ve already gone into the security settings for my user folder and attempted to give permissions to everyone, but I’m still stuck. Is there something I might be overlooking? Any advice would be appreciated!
Had this exact problem last month setting up a new dev environment. It’s usually about where you’re cloning, not GitHub permissions. Windows gets picky about certain directories even when you think you’ve got full access. Try your Documents folder or make a dedicated dev folder in C: root. Also run your command prompt or Git Bash as admin. What worked for me was switching to HTTPS instead of the git protocol - use https://github.com/Varying-Vagrant-Vagrants/VVV.git. The git protocol sometimes clashes with Windows firewall in ways that aren’t obvious.