I keep getting this error error: unable to unlink old
, when I change something on other device and then try to pull
.
Unfortunately sudo chmod -R g+w
doesn’t help, even option with a
didnt fix it.
Is there a way to make my git user able to do whatever changes it wants on dirs shared with docker containers (because now I have to sudo rm -rf
(yes sudo, because normal gives permission error) folder and clone again …)?
2
Answers
This is most likely not a rights issue but another application has locked the file. Try closing all your applications and pull again.
Try if this is a handle resource issue as I mentioned here, and explained in "Git on WSL: error: unable to unlink old Permission denied"
Close VSCode (or even reboot), and try the
git pull
command in your WSL session (again, with VSCode closed).Then reopen VSCode, which will use the
/mnt/c
WSL mounted path.