【发布时间】:2018-06-19 01:30:51
【问题描述】:
我好像做噩梦了,我推的时候一直报这个错误
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'
到目前为止,
我试过重置 git 我按照这个教程 Error on git push = ! [remote rejected] master -> master (pre-receive hook declined)
我也试过关注这个 Failed to lock refs/heads/master
有什么想法吗??
【问题讨论】:
-
按照错误消息的提示做,删除
/data/c01/n01/p/vp0443/data/d-389/r-13803389/refs/heads/master.lock,你应该会很好。 stackoverflow.com/questions/8500089/… -
那个问题,它的远程和 bitbucket...
-
我无权访问我不认为的那个文件?
-
哦,哇,是的,我认为那肯定是本地的。很高兴你明白了!