Unlink of file failed

前端 未结 17 1206
时光取名叫无心
时光取名叫无心 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:21

    In my case I had an old method of pruning tags causing the issue. I solved it by unsetting the original:

    git config --global --unset remote.origin.fetch '\+refs/tags/\*:refs/tags/\*'
    

    then adding this to prune deleted branches on the server:

    git config --global fetch.pruneTags true
    

提交回复
热议问题