Unlink of file failed

前端 未结 17 1208
时光取名叫无心
时光取名叫无心 2020-12-07 12:06

I\'m trying to do a git pull and I get the following error:

Unlink of file \'lib/xxx.jar\' failed. Should I try again? (y/n)

No

相关标签:
17条回答
  • 2020-12-07 12:23

    Try running command line editor in administrative mode and run command. It helps and solves problem. :)

    0 讨论(0)
  • 2020-12-07 12:25

    Try to restart you Apache or other web server as it may have locked some of your files.

    0 讨论(0)
  • 2020-12-07 12:25

    None of the above answers ain't work for me, but I run git gc command with force option, and it solved my case.

    'git gc --force'

    [Windows 7, Run As Administrator => Command Prompt]

    0 讨论(0)
  • 2020-12-07 12:27

    I've got this problem too, but I found out it was the UltraEdit in the way, since I used UE to organize and edit my eclipse workspace~~

    Maybe because the UE has a handle on the old version of specific file, Git could not unlink of it.

    After I closed UltraEdit, the problem never happened again.

    0 讨论(0)
  • 2020-12-07 12:27

    I had PHPStorm open, closed that and all was well.

    0 讨论(0)
  • 2020-12-07 12:27

    I faced the same error and resolved it by closing the eclipse and pulling again as the file was being used.

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