skip to Main Content

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


  1. This is most likely not a rights issue but another application has locked the file. Try closing all your applications and pull again.

    Login or Signup to reply.
  2. 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.

    https://code.visualstudio.com/assets/docs/remote/wsl/architecture-wsl.png

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search