fatal: could not create work tree dir 'kivy'

AndroidDev picture AndroidDev · May 4, 2013 · Viewed 230.6k times · Source

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!

Answer

tito picture tito · May 5, 2013

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.