救命!当我尝试git push origin master现在做时,我得到:
fatal: Unable to create '/home/ubuntu/workspace/.git/refs/remotes/origin/master.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Run Code Online (Sandbox Code Playgroud)
当然,我还发现了其他类似的问题(例如here),但是那里被高调回答的问题只是建议删除有问题的文件...但是该文件不存在!
我担心这是在我最近尝试使用以下方法清除一些空间之后发生的:
$ sudo git reflog expire --all --expire=now
$ sudo git gc --prune=now --aggressive
Run Code Online (Sandbox Code Playgroud)
那可能是原因吗?有修复建议吗?
我似乎做了一场噩梦,当我推动时,我不断收到此错误
remote: error: cannot lock ref 'refs/heads/master': Unable to create '/data/c01/n01/p/vp0443/data/d-389/r-13803389/refs/heads/master.lock': File exists.
remote:
remote: If no other git process is currently running, this probably means a
remote: git process crashed in this repository earlier. Make sure no other git
remote: process is running and remove the file manually to continue.
To https://sam_roberts_@bitbucket.org/sam_roberts_/admitme.git
! [remote rejected] master -> master (failed to update ref)
error: failed to push some refs to 'https://sam_roberts_@bitbucket.org/sam_roberts_/admitme.git'
Run Code Online (Sandbox Code Playgroud)
迄今为止,
我尝试按照本教程重置 git ive git push = 上的错误![远程拒绝] master …