On Fri, Dec 10, 2010 at 11:14 AM, Konstantin Khomoutov
<khomou...@gmail.com> wrote:
> The idea is that the "HEAD" is a distinguished reference, which is
> used to point to the commit object on which the work tree is based,
> and it has no inherent relation to the notion of the "current branch".

Actually .git/HEAD is exactly where git stores the notion of the "curent branch"

if it contains something like

ref: refs/heads/master

Then the current branch is master

If it just contains a sha then HEAD is detached and there IS no current branch.

Which was my point.

Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to