Git Checkout warning: unable to unlink files, permission denied

后端 未结 26 1205
梦毁少年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:22

    I had the same issue , I tried few alternatives as others suggested.

    But finally giving correct permission to .git folder solve the issues.

    sudo chown -R "${USER:-$(id -un)}" .git
    

提交回复
热议问题