git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HEAD file location
@ 2012-01-24  3:42 mfine
  2012-01-24  3:52 ` Sitaram Chamarty
  0 siblings, 1 reply; 2+ messages in thread
From: mfine @ 2012-01-24  3:42 UTC (permalink / raw)
  To: git

I'm working on a Git project and had a question about HEAD.  

In our remote Git repository, I see the file

git_repo_home/HEAD

and another file 

git_repo_home/refs/heads/HEAD

The content of the former file is  refs/heads/master  which looks ok because 
we want HEAD pointing at master.

However, should the latter file exist?  I had thought only branches
should exist in /refs/heads and HEAD isn't a branch right?  I'm wondering
if we erroneously created a HEAD branch.

Thanks for any help!  

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HEAD file location
  2012-01-24  3:42 HEAD file location mfine
@ 2012-01-24  3:52 ` Sitaram Chamarty
  0 siblings, 0 replies; 2+ messages in thread
From: Sitaram Chamarty @ 2012-01-24  3:52 UTC (permalink / raw)
  To: mfine; +Cc: git

On Tue, Jan 24, 2012 at 9:12 AM, mfine <eboats@gmail.com> wrote:
> I'm working on a Git project and had a question about HEAD.
>
> In our remote Git repository, I see the file
>
> git_repo_home/HEAD
>
> and another file
>
> git_repo_home/refs/heads/HEAD
>
> The content of the former file is  refs/heads/master  which looks ok because
> we want HEAD pointing at master.
>
> However, should the latter file exist?  I had thought only branches
> should exist in /refs/heads and HEAD isn't a branch right?  I'm wondering
> if we erroneously created a HEAD branch.

Yes.  Someone did something like 'git push origin HEAD:HEAD'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-24  3:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24  3:42 HEAD file location mfine
2012-01-24  3:52 ` Sitaram Chamarty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).