On Mar 22, 6:26 pm, Pito Salas <r...@salas.com> wrote:

> So, there's one HEAD per repository, not one per branch, correct?

Possibly it helps to note that this "HEAD" is not an "abstract
concept" like in Subversion or Mercurial.
HEAD is just a one-line text file under the .git directory which
contains the name of the commit on which your working directory is
based (or the tip of the "current" branch for remote repo, in which
hase its point is somewhat moot).
This file is updated each time you change the commit on which your
working directory is based. This includes making a new commit and
checking out some existing commit.
Hence, the HEAD is one per repository -- it just marks the point of
where you are currently working at.
Don't confuse this with Mercurial's idea of heads: Git's heads are
almost always (well, always) named.

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