Possible Duplicate:
HEAD and ORIG_HEAD in Git
By default we see two branches in git:
origin/master
origin/HEAD
I wonder, what is head used for?
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.
HEADis a a symbolic reference (similar to a symbolic link) that points to the branch you’re on. You can get the reference it points to usinggit symbolic-ref HEAD. If you switch branches (e.g.git checkout branch1),HEADwill point to that. This is stored in a file in.gitas.git/HEAD.masteris a local branch that you can work on. It’s usually the default if you clone a repository or start a fresh one.origin/masteris the location of themasterbranch on theremotecalledorigin.