move detached head to really checkout a commit
move head to to checkout either branch or a detached head