unable to create file … Permission denied

后端 未结 12 982
旧时难觅i
旧时难觅i 2020-12-14 00:48

i am currently working on windows.

Sometimes i have problems when i try :

git checkout origin develop

i have this error : error: un

相关标签:
12条回答
  • 2020-12-14 01:11

    For me, I made a careless mistake of git pull instead of git clone

    0 讨论(0)
  • 2020-12-14 01:12

    [Solved] I figured out this by giving permission to the directory where I wanted to create a file, by using the following command

    sudo chmod a+rwx <path-of-directory>
    
    0 讨论(0)
  • 2020-12-14 01:17

    I had the same issue and the problem was open files. Make sure you don't have the files git is trying to create open anywhere; close your localhost browser tabs if any of the files are open there; close all references to the files you are working with. That's what worked for me.

    0 讨论(0)
  • 2020-12-14 01:17

    None of the provided solutions helped in my case of this problem.

    Finally (after many desperate unsuccessful attempts) the thing that did the work was good old PC reboot.

    0 讨论(0)
  • 2020-12-14 01:18

    Had same problem developing from VS Code Remote-WSL. Tried to kill NodeJS processes but had some open from previous sessions that didn't want to die. At the end had to restart the WSL and happy times.

    Restart WSL (mind to save files first if something open in WSL):

    In Windows WIN+R -> services.msc -> Find LxssManager -> Right-click -> Restart

    0 讨论(0)
  • 2020-12-14 01:19

    In my case, my angular app was still running from ng serve, giving this:

    Git Bash - ng serve

    So I just had to close it with ctrl+c.

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