Git Checkout warning: unable to unlink files, permission denied

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

    In my case, my Windows directory is under the Dropbox folder. It is not a Git-specific issue. When a file (in this case, the lock file) has just been created, it takes Dropbox another second to do the synchronization. During that time, the file is in use by Dropbox, and any 3rd party program (in this case, Git) cannot delete the file.

    My solution is to quit Dropbox and therefore avoiding the behind-the-scenes magic of Dropbox's file synch.

提交回复
热议问题