Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,362,237
Community Members
 
Community Events
168
Community Groups

Remote: error: cannot lock ref 'refs/heads/master' when trying to push commits

Hi

I'm getting an error when trying to push local commits (either from VS or SourceTree) to 

on private repo https://bitbucket.org/selfinspect/selfinspect/src/master/

Remote: Error: cannot lock ref 'refs/heads/master': Unable to create '/opt/micros/data/cvs/vp1435/data/d-549/r-59335549/./refs/heads/master.lock': File exists.
Remote:
Remote: Another git process seems to be running in this repository, e.g.
Remote: an editor opened by 'git commit'. Please make sure all processes
Remote: are terminated then try again. If it still fails, a git process
Remote: may have crashed in this repository earlier:
Remote: remove the file manually to continue.

2 answers

0 votes
Caroline R Atlassian Team Dec 24, 2021

Hi, @Daryn Clarke

Thank you for reaching out to Atlassian Community!

As we will need to access the repository to remove this lock file, I went ahead and created an internal ticket for you using the email of your community account, so you don't have to share this information here. 

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please let me know if you have any questions.

Kind regards,
Caroline

That's great Caroline, thanks for the quick response.

Like Caroline R likes this

@Caroline R I've seen you've been able to resolve this kind of issue before. Is it possible to delete the lock file in question manually as I'm unable to. Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events