Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Daryn Clarke December 22, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
December 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

Daryn Clarke December 24, 2021

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

Like Caroline R likes this
0 votes
Daryn Clarke December 23, 2021

@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
AUG Leaders

Atlassian Community Events