fatal: could not create work tree dir 'kivy'

后端 未结 13 1701
说谎
说谎 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:08

    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.

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

    In my case what happened was that the user I was using had no ownership over the directory. I simply had to change ownership of the directory to that user. For example if user is ubuntu:

    chown ubuntu:ubuntu -R directory-in-question
    
    cd directory-in-question/
    
    git clone <git repo comes here >
    
    0 讨论(0)
  • 2020-12-04 10:10

    For other Beginners (like myself) If you are on windows running git as admin also solves the problem.

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

    If you are working in Windows you have to change the permissions of the directory putting full permissions or just write to let github clone the repository. The steps are:

    1. Go To your directory
    2. open properties
    3. go to tab "security"
    4. change the permissions
    5. apply
    0 讨论(0)
  • 2020-12-04 10:15

    You need to ensure you are in a directory in which you have write permission. This might not be the directory in which Git is in once you open the terminal. In my case (Widows 10) I had to use the cd command to change the directory to the root directory (C:) After that it worked just fine.

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

    Assuming that you are using Windows, run the application as Admin.

    For that, you have at least two options:

    • Open the file location, right click and select "Run as Administrator".

    • Using Windows Start menu, search for "Git Bash", and you will find the following:

    Then, just press "Run as Administrator".

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