This is Git related.
The speaker in this video says that during the detached HEAD state, Git is warning you that you were looking at a commit that was not labeled with a branch name.
This is confusing to me because I thought the whole linear history of original commits was collectively the master branch. According to what the speaker said, this can’t be right because if I checkout an earlier commit, the branch has no label so thus it cannot be part of the master branch.
So what is the master branch? Is the master branch only the most recent commit? She always mentions the term “tip of the branch” in the video. Does this mean tip of the master branch and master branch are the same thing?
I think this is probably simple but I found her explanation confusing.
edit: Thanks for the explanations. I found this one to be particulary helpful, which I’ll copy and paste below:
"HEAD is a reference to the last commit in the currently checked-out branch.
There is a small exception to this, which is the detached HEAD. A detached HEAD is the situation you end up in whenever you check out a commit (or tag) instead of a branch. In this case, you have to imagine this as a temporary branch without a name; so instead of having a named branch reference, we only have HEAD. It will still allow you to make commits (which will update HEAD), so the above short definition is still true if you think of a detached HEAD as a temporary branch without a name."