git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Failed to lock refs/heads/master

From
salmanmanekia <salmanmanekia@gmail.com>
Date
Jun 27, 2012, 16:24 UTC
Message-ID
<1340814291538-7562253.post@n2.nabble.com>

I am relativly new to git and am facing this problem. The git push command shows the error below. I will explain to you from the begining what i had been trying to do . I created a submodule, commited and pushed it. The push throws the error below.

http://git.661346.n2.nabble.com/file/n7562253/Git_Problem.png 

After that i tried some solutions but none of them worked. I will also explain breifly what i have been trying

1 : From the bitbucket repo i noticed there are some danggling commits (the red arrow in picture 2) so i gave the following commands to solve that git gc and git prune.

2: I also tried commands like git revert HEAD and git push origin HEAD --force but none seem to worked..

http://git.661346.n2.nabble.com/file/n7562253/Git_Problem_2.png 

-- View this message in context: http://git.661346.n2.nabble.com/Failed-to-lock-refs-heads-master-tp7562253.html Sent from the git mailing list archive at Nabble.com.

Message 1 of 1 in “Failed to lock refs/heads/master”
  1. salmanmanekiaJun 27, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.