fatal: could not create work tree dir 'kivy'

后端 未结 13 1700
说谎
说谎 2020-12-04 09:56

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:

相关标签:
13条回答
  • 2020-12-04 10:01
    sudo chmod 777 DIR_NAME
    cd DIR_NAME
    git clone https://github.com/mygitusername/kivy.git
    

    should work fine

    0 讨论(0)
  • 2020-12-04 10:03

    If you are working on a mac, then this is probably because you don't have permission to write to the directory. When I had this issue, I followed the following steps:

    • Opened the folder in finder -> right-click -> get info -> click on the lock on the bottom right of the pop up window, enter admin password -> then change the Sharing and Permissions to Read and Write for wheel, and everyone -> click lock again to save
    0 讨论(0)
  • 2020-12-04 10:05

    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
    
    0 讨论(0)
  • 2020-12-04 10:05

    The directory in which you are trying to write the file or taking the clone of git repository, it does not has the write permission. That's why this problem is occurring.
    Please change the write permission of directory.
    Then clone the repository.

    0 讨论(0)
  • 2020-12-04 10:06

    This does happened also when you are cloning a repo without selecting any working directory. just make sure you did cd into your working directory and i believe it will work just fine.

    0 讨论(0)
  • 2020-12-04 10:06

    All you need to do is Run your terminal as Administrator. in my case, that's how I solve my problem.

    0 讨论(0)
提交回复
热议问题