git push失败:无法取消链接

时间:2018-07-04 09:11:33

标签: git

我的所有存储库都有问题。

当我第一次尝试推入某些东西时,它可以工作,但收到以下警告:

warning: unable to unlink 'W:/TestRepo.git/./HEAD.lock': Invalid argument

之后,文件:HEAD.lock保留在文件夹中,并且git不会将其删除。从现在开始,我不能推动别的事情。我将始终出现以下错误:

remote: error: cannot lock ref 'HEAD': Unable to create '.../HEAD.lock': File exists.

我必须手动删除“ HEAD.lock”文件才能解决此问题,并再按1次。

0 个答案:

没有答案