【问题标题】:bitbucket git cannot lock refbitbucket git 无法锁定 ref
【发布时间】: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...
  • 我无权访问我不认为的那个文件?
  • 哦,哇,是的,我认为那肯定是本地的。很高兴你明白了!

标签: git bitbucket


【解决方案1】:

回答这个问题,联系 bitbucket,他们为我删除了锁定文件:D

【讨论】:

  • 我的是付费账户.. 为什么他们锁定我?我无法理解。
猜你喜欢
  • 2020-01-16
  • 2020-10-19
  • 2016-12-27
  • 2016-09-19
  • 2022-12-01
  • 2021-07-23
  • 1970-01-01
  • 2022-01-12
  • 2019-01-10
相关资源
最近更新 更多