{"thread":{"id":"29435","subject":"HEAD file location","startedAt":"2012-01-24T03:42:46Z","lastAt":"2012-01-24T03:52:09Z","messageCount":2,"participants":["mfine","Sitaram Chamarty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"183006","messageId":"loom.20120124T043119-263@post.gmane.org","threadId":"29435","inReplyTo":null,"subject":"HEAD file location","fromName":"mfine","fromEmail":"eboats@gmail.com","sentAt":"2012-01-24T03:42:46Z","receivedAt":"2012-01-24T03:42:46Z","isPatch":false,"sender":{"key":"eboats@gmail.com","avatar":null},"body":"I'm working on a Git project and had a question about HEAD.  \n\nIn our remote Git repository, I see the file\n\ngit_repo_home/HEAD\n\nand another file \n\ngit_repo_home/refs/heads/HEAD\n\nThe content of the former file is  refs/heads/master  which looks ok because \nwe want HEAD pointing at master.\n\nHowever, should the latter file exist?  I had thought only branches\nshould exist in /refs/heads and HEAD isn't a branch right?  I'm wondering\nif we erroneously created a HEAD branch.\n\nThanks for any help!  \n"},{"id":"183007","messageId":"CAMK1S_jJUJvEz-OY0cMz1LFDSd71zuWhnSfYbg_sVi5DO-JJOQ@mail.gmail.com","threadId":"29435","inReplyTo":"loom.20120124T043119-263@post.gmane.org","subject":"Re: HEAD file location","fromName":"Sitaram Chamarty","fromEmail":"sitaramc@gmail.com","sentAt":"2012-01-24T03:52:09Z","receivedAt":"2012-01-24T03:52:09Z","isPatch":false,"sender":{"key":"sitaramc@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43316?v=4"},"body":"On Tue, Jan 24, 2012 at 9:12 AM, mfine <eboats@gmail.com> wrote:\n> I'm working on a Git project and had a question about HEAD.\n>\n> In our remote Git repository, I see the file\n>\n> git_repo_home/HEAD\n>\n> and another file\n>\n> git_repo_home/refs/heads/HEAD\n>\n> The content of the former file is  refs/heads/master  which looks ok because\n> we want HEAD pointing at master.\n>\n> However, should the latter file exist?  I had thought only branches\n> should exist in /refs/heads and HEAD isn't a branch right?  I'm wondering\n> if we erroneously created a HEAD branch.\n\nYes.  Someone did something like 'git push origin HEAD:HEAD'\n"}]}