

this willīecome the parent of your next commit (if you stay in that branch). Specifically what you last checked out in your working directory. git/HEAD gives an SHA instead of a reference to a file containingĮach branch has a named head, and the HEAD will be pointed to one of these. When HEAD points to a commit that is not the last in a branch. But this denies the existence of a detached head. Points to the file corresponding to the current branch - which itself points toĪn SHA. Detached headĪt first it seems (wrongly, it will turn out), that HEAD is a pointer that git/refs/heads/masterįYI: HEAD will be different for each developer, i.e. What is the ref/heads/master? Just another file, this time one thatĬontains an actual SHA: $ cat. # This ref has changed to reflect the branch name. Watch what happens when I change to the master branch (I was on the # FYI: refactor_types was the name of the branch I was on at this time. Then looking inside on of these ALL CAPS files: $ cat HEAD There is useful information available by inspecting the ALL_CAPS filenames in the.

This usually means it's time for you to push.

This means you have commits locally that are ahead of (your computer's) view of The general case for 'your branch is ahead of origin/master' Origin/master by X commits" and this persisted rather stubbornly. Now, the other people's git instances had issues like "your branch is ahead of Moving HEAD back to before this change then force pushing this to GitHub. Person's recent changes, then pushed this out. At work, someone resolved a merge conflict in a way that clobbered another
