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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Git push fails with error: Cannot lock ref 'HEAD': Unable to create xxxx/HEAD.lock: File Exists Edited

Hi All, I am seeing below error when trying to push to master:

$ git push

Total 0 (delta 0), reused 0 (delta 0)

remote: error: cannot lock ref 'HEAD': Unable to create '/nfs/bitbucket/data/repositories/xxxx/./HEAD.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.

 

I don't see any .git/HEAD.lock or .git/index.lock files in my repository

Any suggestions on what I can do to resolve this?

1 answer

0 votes
Caroline R Atlassian Team Jul 05, 2021

Hi, @Abhinav Bezgam! Welcome to the community! 

I saw you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let’s focus on the ticket instead.

Feel free to share the resolution here to help other community members that may have the same issue. 

Kind regards,
Caroline 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

77 views 0 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you