unable to create file … Permission denied

后端 未结 12 981
旧时难觅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:01

    I was facing the same issue. If your code is running, Stop it (i.e close the terminal on which npm run *** is working) and close Visual Studio. Re-open it and again run the command git checkout develop . It worked for me.

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

    In my case, I had to run git command with sudo: sudo git checkout

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

    For me it was that I was running npm run watch in a linux subsystem (wsl) running it in a normal cmd fixed it.

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

    This was happening to me on linux. I just renamed the folder with the offending file and from the top directory of the checkout ran a git checkout . which solved the problem.

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

    First make sure to run your cmd/terminal as an administrator (right click on cmd.exe icon -> "Run as Administrator")

    I had the same issue with a git pull (using cmder on windows). What worked for me is this:

    This will delete your local changes:
    hard reset your branch and try again.
    $ git checkout origin develop - (failed)
    $ git reset --hard HEAD
    $ git checkout origin develop - (great success!)

    If this doesn't work try forcing the checkout:
    This will also throw away your local changes
    $ git checkout -f origin develop.

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

    In my case, "npm run dev", for webpack build to my React app was still running with failed to compile error. aborting it with ctrl+c fix it

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