On Fri, Jan 29, 2010 at 11:03 PM, Nicolas Pitre <nico@xxxxxxxxxxx> wrote: > Have a look at http://eagain.net/articles/git-for-computer-scientists/ > > That's one of the clearest explanation of the Git branching model I've > seen. Ah, I never realized this before, but it doesn't include any discussion/graphic of what a detached HEAD is. It only shows HEAD referring to a named branch. > There is no contradiction. The "detached HEAD" corresponds to HEAD > pointing at no branch in particular. There is just no current branch in > that case. Again (referring to my last message), I think Ron's confusion is that "branch" can mean either a branch in the DAG which is your repo's history, or it can mean a named branch (something under .git/refs), and they aren't necessarily the same, although around here when we say "branch" we almost always mean a named branch. When HEAD is detached and you create a commit, you're effectively creating a branch in the DAG, but this branch is anonymous and subject to garbage collection. j. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html