I’m trying to learn Git, and I can’t imagine why the HEAD pointer would be called that. If I knew, it would be a lot easier to remember what it means.
I’m trying to learn Git, and I can’t imagine why the HEAD pointer would
Share
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.
In computer science in general head is the part of a data structure conceptually closest to the observer, such as the first element of a linked list. The opposite is the tail, which is the farthest element.
In git
HEADis the commit on which you are currently operating, and is obviously the closest commit in the history graph. git is not unique in this naming; Subversion and CVS also used theHEADterm for equivalent concepts.