{"thread":{"id":"30917","subject":"Failed to lock refs/heads/master","startedAt":"2012-06-27T16:24:51Z","lastAt":"2012-06-27T16:24:51Z","messageCount":1,"participants":["salmanmanekia"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"194358","messageId":"1340814291538-7562253.post@n2.nabble.com","threadId":"30917","inReplyTo":null,"subject":"Failed to lock refs/heads/master","fromName":"salmanmanekia","fromEmail":"salmanmanekia@gmail.com","sentAt":"2012-06-27T16:24:51Z","receivedAt":"2012-06-27T16:24:51Z","isPatch":false,"sender":{"key":"salmanmanekia@gmail.com","avatar":"https://gravatar.com/avatar/cc181fff4c6cf98fa58835dd38c7dba1793ae2ce1cc5dcb0a886a2681effb7b0?d=mp&s=160"},"body":"I am relativly new to git and am facing this problem. The git push command\nshows the error below. I will explain to you from the begining what i had\nbeen trying to do . I created a submodule, commited and pushed it. The push\nthrows the error below.\n\nhttp://git.661346.n2.nabble.com/file/n7562253/Git_Problem.png \n\nAfter that i tried some solutions but none of them worked. I will also\nexplain breifly what i have been trying\n\n1 : From the bitbucket repo i noticed there are some danggling commits (the\nred arrow in picture 2) so i gave the following commands to solve that git\ngc and git prune.\n\n2: I also tried commands like git revert HEAD and git push origin HEAD\n--force but none seem to worked..\n\nhttp://git.661346.n2.nabble.com/file/n7562253/Git_Problem_2.png \n\n--\nView this message in context: http://git.661346.n2.nabble.com/Failed-to-lock-refs-heads-master-tp7562253.html\nSent from the git mailing list archive at Nabble.com.\n"}]}