i am currently working on windows.
Sometimes i have problems when i try :
git checkout origin develop
i have this error : error: un
For me, I made a careless mistake of git pull
instead of git clone
[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>
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.
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.
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
In my case, my angular app was still running from ng serve
, giving this:
So I just had to close it with ctrl+c
.