致命:无法创建工作树dir'kivy' [英] fatal: could not create work tree dir 'kivy'
本文介绍了致命:无法创建工作树dir'kivy'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图克隆我的kivy git的分支,但它不起作用。我相信,我正确地制作了叉子,但是当我将它输入到我的Mac终端时:
git clone https://github.com/mygitusername/kivy.git
我得到这个错误:
致命:无法创建工作树dir'kivy .:权限否认
任何人看到我做错了什么?谢谢!
解决方案
您应该在您有写入权限的目录中执行命令。所以:
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:
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.
这篇关于致命:无法创建工作树dir'kivy'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文