Search code examples
githubgit-clonekivy

fatal: could not create work tree dir '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!


Solution

  • 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.