title: Fixing detached head with a tag
body: <p>Is it possible to fix a detached head with a tag? In other words, is it possible to prevent garbage collector deleting commits in a detached head with a tag at the last commit?</p>
  
  <p>Every other post that I've found talk about creating a branch in the detached head to prevent losing commits that have been created in this state before leaving to another branch.</p>
  
  <p>As I understand, the major difference between a tag and a branch is the branch moving with the head compared to the tag which stays at the exact same position where it was created.</p>
  
  <p>In my scenario, I've checked out with an SHA-1 and then done a couple of commits from this point. Before leaving, I want to put a bookmark and I think in term of semantic, a tag would be better than a branch to go back later.</p>
  
  <p>I don't have any problem creating a branch at this point instead of a tag if this is the only thing that I can do but I'm wondering about the behavior of git internally with tags and branches with relation with a detached head.</p>
  
  <p>Also, conceptually, if someone does not agree with me about creating a tag instead of a branch, in this case, an explanation would be appreciated.</p>