其他问题 请问这个是什么错误

meyer · 2016年03月07日 · 最后由 meyer 回复于 2016年03月07日 · 119 次阅读

Pushing to git@git.coding.net:meyer/docker-worker.git remote: error: cannot lock ref 'refs/heads/master': Unable to create '/data/git/git-repo-4.coding.local/472/282472.git/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 git@git.coding.net:meyer/docker-worker.git ! [remote rejected] master -> master (failed to update ref) error: failed to push some refs to 'git@git.coding.net:meyer/docker-worker.git'

共收到 3 条回复

push 的时候出现的问题。

删掉 .lock 文件后再次 push 试试?

Linux
rm -f .git/refs/heads/master.lock

Windows
del .git\refs\heads\master.lock

ok 可以了,谢谢!

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
相关话题