i am currently working on windows.
Sometimes i have problems when i try :
git checkout origin develop
i have this error : error: unable to create file .... : Permission denied
"git status" show me the file in error not staged so i have to commit
What do i have to check ?
i tried to do this command line on my computer :
chown -R username directory
We are severals people to work on a git repository and they have the problem too.
thanks for you help
Right-click the file or folder, and then click Properties. Click the Security tab. Under Group or user names, click your name to see the permissions that you have. Click Edit, click your name, select the check boxes for the permissions that you must have, and then click OK.
If you receive an error telling you that you do not have permissions to create a directory or to write a file to a directory, this is likely an indication that your script is attempting to write to a directory that you do not own.
[ErrorException] mkdir(): Permission denied Create a new folder, say 'myproject and run sudo chmod 777 myproject . Then move to 'myproject' folder and create project. To solve this problem, go into your laravel project, make your public directory writable.
In my case, my angular app was still running from ng serve
, giving this:
So I just had to close it with ctrl+c
.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With