content of HEAD file inside .git folder is different
<p>I just started playing with git. </p>

<p>Initialized git in two different folders called GitT1 and GitT2. Added simple file and played around. And now I see that content of the HEAD(inside the .git folder) show different for the two. 
GitT1 shows</p>

<p><strong>ref: refs/heads/master</strong></p>

<p>and GitT2 shows the commit id(SHA-1)</p>

<p><strong>0a54a52982ac1340fdcac44cc5f874e9ce85a110</strong></p>

<p>I understand both of them, one is SHA-1(commit ID) and the other points to the branch. So the question is why are these two different?</p>

<p><strong>EDIT</strong></p>

<p>One thing is I did checkout to move the HEAD on GitT2 so if I do git status, it says </p>

<p><strong>HEAD detached from 7448b1a</strong></p>

<p><strong>nothing to commit, working tree clean</strong> </p>

<p>Is this anything to do with the HEAD?</p>