You see the Git documentation saying things like
The branch must be fully merged in HEAD.
But what is Git HEAD exactly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can think of the HEAD as the “current branch”. When you switch branches with
git checkout, the HEAD revision changes to point to the tip of the new branch.You can see what HEAD points to by doing:
In my case, the output is:
It is possible for HEAD to refer to a specific revision that is not associated with a branch name. This situation is called a detached HEAD.