Windows 10 文件权限错误 Github

Windows 10 file permission error with Github

我正在尝试安装 varying-vagrant-vagrants (vvv)。
当我输入 git 命令时:

$ git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git vagrant-local

我明白了

fatal: could not create work tree dir 'vagrant-local': Permission denied

我尝试进入我的用户文件夹的安全设置并为所有人设置权限。帮忙?

首先,无需使用 git:// protocol:http(s) 工作正常;

git clone https://github.com/Varying-Vagrant-Vagrants/VVV.git vagrant-local

其次,您将在当前所在的文件夹中创建 vagrant-local,因此请务必先执行以下操作:

cd %USERPROFILE%

这里不需要 git bash,但是如果你在 git bash 中,那就是:

cd /c/Users/jordan

克隆成功后,任何 vagrant 错误都可以通过“A VirtualBox machine with the name '...' already exists”问题解决。