Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 809
AndroidDev Avatar asked May 04 '13 15:05

AndroidDev


2 Answers

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.

like image 152
tito Avatar answered Sep 29 '22 08:09

tito


Your current directory does not has the write/create permission to create kivy directory, thats why occuring this problem.

Your current directory give 777 rights and try it.

sudo chmod 777 DIR_NAME cd DIR_NAME git clone https://github.com/mygitusername/kivy.git 
like image 20
Jaykumar Patel Avatar answered Sep 29 '22 08:09

Jaykumar Patel