Git is a dangerous tool to use
Quote from the Git documentation:
<branch> When this parameter names a non-branch (but still a valid commit object), your HEAD becomes detached. Junio C. Hamano – the checkout documentation
Git – the only SCM that beheads its users.