我的所有存储库都有问题。
当我第一次尝试推入某些东西时,它可以工作,但收到以下警告:
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次。