Git Checkout warning: unable to unlink files, permission denied

后端 未结 26 1100
梦毁少年i
梦毁少年i 2020-12-04 08:46

I am aware that there are similar issues about git relating to the \'unable to unlink\' warning, but I have not been able to use them.

The main difference is that th

相关标签:
26条回答
  • 2020-12-04 09:36

    You don't have the access permission, maybe because you are not the owner.

    Fix by changing the owner to yourself:

    sudo chown -R your_login_name /path/to/folder
    
    0 讨论(0)
  • 2020-12-04 09:37

    To those who are using Intellij, as @rtconner said this problem is not caused by git. Since your IDE is locked a file(s) git cannot un-link it. So, you need to close your IDE and then try to merge (or whatever you like) it via command line.

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