且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

致命:无法创建工作树dir'kivy'

更新时间:2023-02-14 22:35:00

您应该在您有写入权限的目录中执行命令。所以:

  cd〜/ 
mkdir code
cd code
git clone https:/ /github.com/kivy/kivy

例如。

I'm trying to clone my fork of the kivy git, but it's not working. I've made the fork correctly, I believe, but when I type this into my Mac terminal:

git clone https://github.com/mygitusername/kivy.git

I get this error:

fatal: could not create work tree dir 'kivy.: Permission denied

Anyone see what I am doing wrong? Thanks!

You should do the command in a directory where you have write permission. So:

cd ~/
mkdir code
cd code
git clone https://github.com/kivy/kivy

For example.